Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009241/0.0009241, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 143.2 kB / 24.9 MB, free: 8.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9609/0.9609, allocations: 173.4 MB / 201.5 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.284e-05/2.444e-05, allocations: 6.25 kB / 268.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005388/0.005413, allocations: 3.994 MB / 272.5 MB, free: 2.141 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.007801, allocations: 1.032 MB / 273.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.008086, allocations: 11.94 kB / 273.6 MB, free: 1.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.00832, allocations: 83.2 kB / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.008726, allocations: 202.2 kB / 273.8 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.009289, allocations: 223.6 kB / 274.1 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009818/0.01027, allocations: 0.8288 MB / 274.9 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.01053, allocations: 122.1 kB / 275 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007355/0.01127, allocations: 463 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.01172, allocations: 287.2 kB / 275.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.01184, allocations: 80 kB / 275.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.01193, allocations: 76 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.01205, allocations: 151.5 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.0123, allocations: 239.4 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005952/0.01289, allocations: 0.5139 MB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.0129, allocations: 4 kB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.0129, allocations: 0 / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.01291, allocations: 0 / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001581/0.01449, allocations: 0.8595 MB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.01452, allocations: 12.92 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.01462, allocations: 68.88 kB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.01495, allocations: 275.7 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.01497, allocations: 29.38 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.01502, allocations: 32.38 kB / 278.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005041/0.01552, allocations: 436.3 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.01553, allocations: 192 / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.01556, allocations: 16.38 kB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.01557, allocations: 11.94 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.01578, allocations: 134.9 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.01724, allocations: 1.355 MB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007875/0.01803, allocations: 350.6 kB / 280.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.01818, allocations: 121.3 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.01822, allocations: 12.33 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.01844, allocations: 236.5 kB / 280.7 MB, free: 9.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.363e-06/0.01845, allocations: 0 / 280.7 MB, free: 9.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00296/0.02141, allocations: 1.017 MB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.02144, allocations: 85.11 kB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.02162, allocations: 327.4 kB / 282.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.02165, allocations: 37.7 kB / 282.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.946e-05/0.02173, allocations: 193.8 kB / 282.3 MB, free: 8.035 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.235e-05/0.0218, allocations: 138.8 kB / 282.5 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.123e-05/0.0219, allocations: 70.03 kB / 282.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.721e-05/0.02198, allocations: 362.7 kB / 282.9 MB, free: 7.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.864e-05/0.02208, allocations: 74.56 kB / 283 MB, free: 7.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.02221, allocations: 149.8 kB / 283.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002055/0.02241, allocations: 204.4 kB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.02241, allocations: 0 / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007803/0.02319, allocations: 385 kB / 283.7 MB, free: 6.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.02323, allocations: 37.69 kB / 283.7 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.02323, allocations: 0 / 283.7 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004607/0.02369, allocations: 188.7 kB / 283.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.02396, allocations: 78.98 kB / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002751/0.02671, allocations: 2.01 MB / 286 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.02696, allocations: 67.73 kB / 286.1 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.02699, allocations: 15.98 kB / 286.1 MB, free: 4.141 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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0001237/0.02711, allocations: 129.8 kB / 286.2 MB, free: 4.004 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.847e-05/0.02717, allocations: 39.97 kB / 286.3 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.011e-05/0.02724, allocations: 52.36 kB / 286.3 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.02725, allocations: 4 kB / 286.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.02725, allocations: 11.88 kB / 286.3 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.02725, allocations: 4 kB / 286.3 MB, free: 3.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003191/0.02757, allocations: 290 kB / 286.6 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02758, allocations: 0 / 286.6 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.02782, allocations: 71.89 kB / 286.7 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004111/0.02823, allocations: 195.3 kB / 286.9 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.105e-05/0.02826, allocations: 16 kB / 286.9 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002556/0.03082, allocations: 1.988 MB / 288.9 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.03082, allocations: 3.984 kB / 288.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.03215, allocations: 0.5011 MB / 289.4 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.03227, allocations: 47.59 kB / 289.4 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/0.03232, allocations: 16 kB / 289.4 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.03254, allocations: 43.89 kB / 289.5 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.03265, allocations: 63.97 kB / 289.5 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.03267, allocations: 4 kB / 289.5 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001314/0.0328, allocations: 144.7 kB / 289.7 MB, free: 404 kB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.0328, allocations: 0 / 289.7 MB, free: 404 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004386/0.03324, allocations: 167.8 kB / 289.9 MB, free: 236 kB / 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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001115/0.03335, allocations: 92.36 kB / 289.9 MB, free: 132 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.09275/0.1261, allocations: 482.8 kB / 290.4 MB, free: 29.93 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/0.1261, allocations: 4.438 kB / 290.4 MB, free: 29.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004235/0.1265, allocations: 348.7 kB / 290.8 MB, free: 29.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.1268, allocations: 87.31 kB / 290.8 MB, free: 29.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.1282, allocations: 0.9296 MB / 291.8 MB, free: 29.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.597e-05/0.1283, allocations: 119.8 kB / 291.9 MB, free: 29.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001273/0.1284, allocations: 37.97 kB / 291.9 MB, free: 29.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.1286, allocations: 130.9 kB / 292.1 MB, free: 29.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1286, allocations: 1.094 kB / 292.1 MB, free: 29.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01218/0.1408, allocations: 13.1 MB / 305.2 MB, free: 24.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.25355386082083]