Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.0009933/0.0009933, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.001125/0.001125, allocations: 157.1 kB / 25.45 MB, free: 9.352 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.8778/0.8778, allocations: 158.6 MB / 187.2 MB, free: 3.055 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.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 299.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.433e-05, allocations: 2.281 kB / 299.7 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.013/0.01302, allocations: 21.07 MB / 320.8 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01861/0.03163, allocations: 18.67 MB / 339.4 MB, free: 15 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003031/0.03466, allocations: 273 kB / 339.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.03731, allocations: 1.64 MB / 341.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006234/0.04354, allocations: 3.387 MB / 344.7 MB, free: 9.672 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.04618, allocations: 1.573 MB / 346.3 MB, free: 8.09 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1569/0.2031, allocations: 12.79 MB / 359.1 MB, free: 22.78 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009931/0.2041, allocations: 0.492 MB / 359.6 MB, free: 22.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.2075, allocations: 2.723 MB / 362.3 MB, free: 22.59 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.2089, allocations: 1.442 MB / 363.8 MB, free: 22.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002164/0.2091, allocations: 135.2 kB / 363.9 MB, free: 22.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002694/0.2118, allocations: 1.153 MB / 365 MB, free: 22.59 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002819/0.2121, allocations: 0.6043 MB / 365.6 MB, free: 22.35 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.2132, allocations: 1.423 MB / 367.1 MB, free: 22.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003806/0.217, allocations: 6.539 MB / 373.6 MB, free: 21.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.217, allocations: 3.438 kB / 373.6 MB, free: 21.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.217, allocations: 0 / 373.6 MB, free: 21.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.217, allocations: 0 / 373.6 MB, free: 21.09 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.00427/0.2213, allocations: 6.822 MB / 380.4 MB, free: 17.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2213, allocations: 13.52 kB / 380.4 MB, free: 17.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.2217, allocations: 0.7864 MB / 381.2 MB, free: 16.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003274/0.225, allocations: 4.406 MB / 385.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.225, allocations: 66.81 kB / 385.7 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2251, allocations: 104.2 kB / 385.8 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.2263, allocations: 1.31 MB / 387.1 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2263, allocations: 0 / 387.1 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.06e-05/0.2263, allocations: 35.91 kB / 387.1 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.2264, allocations: 40.91 kB / 387.2 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.228, allocations: 1.485 MB / 388.7 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.2324, allocations: 5.155 MB / 393.8 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.2333, allocations: 0.8743 MB / 394.7 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007806/0.234, allocations: 1.065 MB / 395.8 MB, free: 6.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02742/0.2615, allocations: 27.11 MB / 422.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006229/0.2621, allocations: 0.5596 MB / 423.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.113e-06/0.2621, allocations: 0 / 423.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.001974/0.2641, allocations: 1.915 MB / 425.3 MB, free: 8.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.2641, allocations: 68.05 kB / 425.4 MB, free: 7.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004595/0.2687, allocations: 5.67 MB / 431.1 MB, free: 2.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.029e-05/0.2687, allocations: 41.7 kB / 431.1 MB, free: 2.293 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/0.2707, allocations: 2.971 MB / 434.1 MB, free: 15.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.2708, allocations: 309.8 kB / 434.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003193/0.2711, allocations: 415 kB / 434.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.492e-05/0.2712, allocations: 301.1 kB / 435.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.2717, allocations: 411.8 kB / 435.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007341/0.2724, allocations: 1.09 MB / 436.6 MB, free: 12.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.2737, allocations: 1.609 MB / 438.2 MB, free: 10.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.2737, allocations: 11.98 kB / 438.2 MB, free: 10.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001988/0.2757, allocations: 2.242 MB / 440.5 MB, free: 8.645 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2758, allocations: 16 kB / 440.5 MB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.2759, allocations: 160 kB / 440.6 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.2759, allocations: 39.92 kB / 440.7 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008571/0.2767, allocations: 364.4 kB / 441 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.586e-05/0.2768, allocations: 46.2 kB / 441.1 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.2778, allocations: 190.7 kB / 441.3 MB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.2779, allocations: 124 kB / 441.4 MB, free: 7.762 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0008382/0.2788, allocations: 0.7234 MB / 442.1 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000399/0.2792, allocations: 0.7531 MB / 442.9 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002446/0.2816, allocations: 2.165 MB / 445 MB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.2816, allocations: 15.92 kB / 445 MB, free: 4.137 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2816, allocations: 3.938 kB / 445 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2816, allocations: 0 / 445 MB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.285, allocations: 3.375 MB / 448.4 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-05/0.2851, allocations: 140 kB / 448.5 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.2854, allocations: 158.5 kB / 448.7 MB, free: 456 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.89e-06/0.2854, allocations: 3.938 kB / 448.7 MB, free: 452 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.615e-05/0.2855, allocations: 63.98 kB / 448.8 MB, free: 388 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.2855, allocations: 4 kB / 448.8 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2855, allocations: 0 / 448.8 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.2873, allocations: 2.196 MB / 451 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007532/0.2881, allocations: 0.7895 MB / 451.8 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/0.2884, allocations: 23.86 kB / 451.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005726/0.2889, allocations: 35.97 kB / 451.8 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.2891, allocations: 100.5 kB / 451.9 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.716e-05/0.2891, allocations: 68.88 kB / 452 MB, free: 13.14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00304/0.2922, allocations: 3.633 MB / 455.6 MB, free: 9.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2922, allocations: 0 / 455.6 MB, free: 9.539 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001368/0.2935, allocations: 1.089 MB / 456.7 MB, free: 8.449 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001186/0.2947, allocations: 1.275 MB / 458 MB, free: 7.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.2961, allocations: 1.368 MB / 459.3 MB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2961, allocations: 0 / 459.3 MB, free: 6.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.2968, allocations: 0.738 MB / 460.1 MB, free: 5.277 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.2988, allocations: 0.9917 MB / 461.1 MB, free: 4.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007698/0.3065, allocations: 8.281 MB / 469.4 MB, free: 11.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/0.3081, allocations: 2.119 MB / 471.5 MB, free: 9.812 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.3084, allocations: 296.5 kB / 471.8 MB, free: 9.523 MB / 410.7 MB Notification: Performance of SimCode: time 1.964e-06/0.3084, allocations: 0 / 471.8 MB, free: 9.523 MB / 410.7 MB Notification: Performance of Templates: time 0.2112/0.5196, allocations: 74.11 MB / 0.5331 GB, free: 155.8 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.535836563445628]