Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008545/0.0008545, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000925/0.000925, allocations: 161.4 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9346/0.9346, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.5e-05, allocations: 5.266 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01048/0.01049, allocations: 14.29 MB / 287.7 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1313/0.1418, allocations: 19.9 MB / 307.6 MB, free: 9.613 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1439, allocations: 140.8 kB / 307.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1465, allocations: 1.208 MB / 309 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006525/0.153, allocations: 2.436 MB / 311.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003971/0.157, allocations: 1.408 MB / 312.8 MB, free: 6.223 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00647/0.1634, allocations: 6.995 MB / 319.8 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006681/0.1641, allocations: 295 kB / 320.1 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00293/0.167, allocations: 3.087 MB / 323.2 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.1681, allocations: 0.8486 MB / 324 MB, free: 14.19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1683, allocations: 72 kB / 324.1 MB, free: 14.12 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002964/0.1713, allocations: 1.264 MB / 325.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.1715, allocations: 345.5 kB / 325.7 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008536/0.1723, allocations: 0.7716 MB / 326.5 MB, free: 11.74 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003422/0.1758, allocations: 2.871 MB / 329.3 MB, free: 8.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1758, allocations: 3.938 kB / 329.3 MB, free: 8.852 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1758, allocations: 0 / 329.3 MB, free: 8.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.643e-05/0.1759, allocations: 0 / 329.3 MB, free: 8.852 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002933/0.1788, allocations: 3.826 MB / 333.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1788, allocations: 19.98 kB / 333.2 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.1791, allocations: 287.6 kB / 333.5 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.1816, allocations: 2.112 MB / 335.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.1816, allocations: 40.98 kB / 335.6 MB, free: 2.406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.505e-05/0.1817, allocations: 51.95 kB / 335.7 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.1824, allocations: 463.5 kB / 336.1 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1824, allocations: 7.984 kB / 336.1 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.1824, allocations: 19.94 kB / 336.1 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.1825, allocations: 23.98 kB / 336.2 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004683/0.1829, allocations: 224.5 kB / 336.4 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.1857, allocations: 1.562 MB / 337.9 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/0.1861, allocations: 284.8 kB / 338.2 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.1865, allocations: 331 kB / 338.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03016/0.2166, allocations: 23.03 MB / 361.6 MB, free: 7.523 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003345/0.2169, allocations: 216.4 kB / 361.8 MB, free: 7.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.217, allocations: 0 / 361.8 MB, free: 7.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007746/0.2177, allocations: 495.2 kB / 362.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.2178, allocations: 59.41 kB / 362.3 MB, free: 6.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002238/0.22, allocations: 2.791 MB / 365.1 MB, free: 3.949 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.2201, allocations: 33.7 kB / 365.2 MB, free: 3.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005353/0.2206, allocations: 0.7884 MB / 365.9 MB, free: 3.109 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.2207, allocations: 178.6 kB / 366.1 MB, free: 2.934 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.2209, allocations: 182.3 kB / 366.3 MB, free: 2.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.221, allocations: 349.8 kB / 366.6 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2212, allocations: 73.97 kB / 366.7 MB, free: 2.328 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.2215, allocations: 456.2 kB / 367.2 MB, free: 1.711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005921/0.2221, allocations: 0.617 MB / 367.8 MB, free: 0.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.2221, allocations: 4 kB / 367.8 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000906/0.223, allocations: 0.6963 MB / 368.5 MB, free: 220 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.223, allocations: 12 kB / 368.5 MB, free: 208 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.428e-05/0.2231, allocations: 23.98 kB / 368.5 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/0.2232, allocations: 20 kB / 368.5 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006/0.2238, allocations: 224.4 kB / 368.7 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.2238, allocations: 27.86 kB / 368.8 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.2245, allocations: 107.2 kB / 368.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/0.2246, allocations: 36 kB / 368.9 MB, free: 15.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003371/0.2249, allocations: 177.5 kB / 369.1 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002588/0.2252, allocations: 251.7 kB / 369.3 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.2269, allocations: 0.8026 MB / 370.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.227, allocations: 4 kB / 370.1 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.227, allocations: 4 kB / 370.1 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.403e-06/0.227, allocations: 3.938 kB / 370.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.2289, allocations: 1.601 MB / 371.7 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.886e-05/0.2289, allocations: 11.98 kB / 371.8 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.2293, allocations: 91.98 kB / 371.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2293, allocations: 4 kB / 371.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/0.2294, allocations: 20.8 kB / 371.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.2294, allocations: 7.938 kB / 371.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2294, allocations: 0 / 371.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007881/0.2302, allocations: 0.6377 MB / 372.5 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005106/0.2307, allocations: 405.1 kB / 372.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.2309, allocations: 23.95 kB / 372.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.2314, allocations: 19.98 kB / 373 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2315, allocations: 45.8 kB / 373 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.909e-05/0.2316, allocations: 12 kB / 373 MB, free: 11.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001383/0.233, allocations: 1.49 MB / 374.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.233, allocations: 0 / 374.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001935/0.2349, allocations: 0.6047 MB / 375.1 MB, free: 9.496 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001202/0.2361, allocations: 0.9268 MB / 376 MB, free: 8.562 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006849/0.2368, allocations: 461.3 kB / 376.5 MB, free: 8.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.716e-05/0.2368, allocations: 44.5 kB / 376.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003/0.2371, allocations: 236.9 kB / 376.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.2391, allocations: 0.6492 MB / 377.4 MB, free: 7.141 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004761/0.2439, allocations: 4.18 MB / 381.6 MB, free: 2.895 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.2441, allocations: 406.4 kB / 382 MB, free: 2.477 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008395/0.245, allocations: 357.3 kB / 382.3 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008534/0.2458, allocations: 0.5967 MB / 382.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of SimCode: time 2.314e-06/0.2458, allocations: 0 / 382.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of Templates: time 0.04499/0.2908, allocations: 38.3 MB / 421.2 MB, free: 11.75 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.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.3410302880220115]