Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 79.73 kB / 21.97 MB, free: 2.602 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 174.2 kB / 25.33 MB, free: 9.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8744/0.8744, allocations: 158.6 MB / 187.2 MB, free: 2.531 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.122e-06/1.122e-06, allocations: 0 / 251.1 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.77e-05, allocations: 10.25 kB / 251.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003765/0.003782, allocations: 3.828 MB / 254.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001782/0.005564, allocations: 1.002 MB / 255.9 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002334/0.005798, allocations: 11.94 kB / 255.9 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.00598, allocations: 87.14 kB / 256 MB, free: 14.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.006225, allocations: 186.4 kB / 256.2 MB, free: 14.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004142/0.00664, allocations: 203.5 kB / 256.4 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006277/0.007267, allocations: 0.7935 MB / 257.2 MB, free: 13.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.007472, allocations: 105.5 kB / 257.3 MB, free: 13.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004853/0.007958, allocations: 443.1 kB / 257.7 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.008245, allocations: 259.3 kB / 258 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.089e-05/0.008326, allocations: 75.94 kB / 258 MB, free: 12.56 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.418e-05/0.0084, allocations: 76 kB / 258.1 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.811e-05/0.008488, allocations: 151.4 kB / 258.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.008668, allocations: 219.5 kB / 258.5 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004197/0.009087, allocations: 490.4 kB / 258.9 MB, free: 11.64 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.00909, allocations: 4 kB / 259 MB, free: 11.64 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.009092, allocations: 0 / 259 MB, free: 11.64 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.009097, allocations: 0 / 259 MB, free: 11.64 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001298/0.0104, allocations: 0.9532 MB / 259.9 MB, free: 10.64 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.01043, allocations: 11.98 kB / 259.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.01057, allocations: 84.61 kB / 260 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.01094, allocations: 350.5 kB / 260.3 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.01098, allocations: 29.31 kB / 260.4 MB, free: 10.15 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.857e-05/0.01104, allocations: 40.38 kB / 260.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006296/0.01167, allocations: 445.7 kB / 260.8 MB, free: 9.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.01168, allocations: 3.938 kB / 260.8 MB, free: 9.637 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.01171, allocations: 16 kB / 260.9 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.01173, allocations: 8 kB / 260.9 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003494/0.01207, allocations: 193.8 kB / 261.1 MB, free: 9.422 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.01399, allocations: 1.786 MB / 262.8 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.01502, allocations: 387.4 kB / 263.2 MB, free: 7.16 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.01527, allocations: 155.6 kB / 263.4 MB, free: 7.004 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.0153, allocations: 4.625 kB / 263.4 MB, free: 7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000322/0.01562, allocations: 248.9 kB / 263.6 MB, free: 6.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 2.124e-06/0.01562, allocations: 3.938 kB / 263.6 MB, free: 6.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=39): time 0.002648/0.01827, allocations: 0.9027 MB / 264.5 MB, free: 5.812 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.01833, allocations: 89.05 kB / 264.6 MB, free: 5.707 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002805/0.01861, allocations: 386.7 kB / 265 MB, free: 5.316 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.01864, allocations: 37.7 kB / 265 MB, free: 5.273 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.01878, allocations: 283.5 kB / 265.3 MB, free: 4.992 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.136e-05/0.01886, allocations: 134.8 kB / 265.4 MB, free: 4.859 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.01897, allocations: 75.72 kB / 265.5 MB, free: 4.773 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.01911, allocations: 0.5196 MB / 266 MB, free: 4.242 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.01929, allocations: 106.5 kB / 266.1 MB, free: 4.133 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.01948, allocations: 182.5 kB / 266.3 MB, free: 3.93 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.01978, allocations: 227.3 kB / 266.5 MB, free: 3.691 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.01978, allocations: 0 / 266.5 MB, free: 3.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001212/0.021, allocations: 0.5499 MB / 267.1 MB, free: 3.121 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.02104, allocations: 44.59 kB / 267.1 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.02105, allocations: 0 / 267.1 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004765/0.02153, allocations: 195.5 kB / 267.3 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.02172, allocations: 75.88 kB / 267.4 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.02476, allocations: 2.785 MB / 270.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.02497, allocations: 59.7 kB / 270.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.025, allocations: 19.98 kB / 270.3 MB, free: 15.82 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001353/0.02513, allocations: 172.6 kB / 270.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.0252, allocations: 47.77 kB / 270.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.02525, allocations: 52.25 kB / 270.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.02525, allocations: 4 kB / 270.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.02526, allocations: 7.922 kB / 270.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.02526, allocations: 0 / 270.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.0257, allocations: 380.6 kB / 270.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.0257, allocations: 0 / 270.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.02586, allocations: 55.95 kB / 271 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003696/0.02623, allocations: 215.2 kB / 271.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.02626, allocations: 11.98 kB / 271.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002618/0.02888, allocations: 2.782 MB / 274 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.02888, allocations: 0 / 274 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.03022, allocations: 0.5667 MB / 274.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.03033, allocations: 95.67 kB / 274.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.03037, allocations: 15.94 kB / 274.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.03054, allocations: 31.97 kB / 274.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.03064, allocations: 51.91 kB / 274.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.03066, allocations: 19.98 kB / 274.7 MB, free: 11.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.03082, allocations: 263.1 kB / 275 MB, free: 10.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03082, allocations: 0 / 275 MB, free: 10.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000346/0.03117, allocations: 163.8 kB / 275.2 MB, free: 10.72 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001132/0.03128, allocations: 103.2 kB / 275.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007728/0.03205, allocations: 0.607 MB / 275.9 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.03205, allocations: 0 / 275.9 MB, free: 9.965 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004602/0.03251, allocations: 420.8 kB / 276.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.0328, allocations: 95.39 kB / 276.4 MB, free: 9.441 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.03439, allocations: 0.9334 MB / 277.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.734e-05/0.03447, allocations: 117.8 kB / 277.4 MB, free: 8.344 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001165/0.03458, allocations: 43.27 kB / 277.5 MB, free: 8.301 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.566e-05/0.03466, allocations: 32.5 kB / 277.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.03466, allocations: 0 / 277.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01402/0.04868, allocations: 12.48 MB / 290 MB, free: 11.79 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4976001670584083]