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.00148/0.00148, allocations: 92.33 kB / 21.73 MB, free: 2.68 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.001481/0.001481, allocations: 160.2 kB / 25.02 MB, free: 9.438 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 1.369/1.369, allocations: 158.6 MB / 186.8 MB, free: 2.891 MB / 170.7 MB " [Timeout remaining time 178] 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.733e-06/1.733e-06, allocations: 0 / 250.4 MB, free: 3.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.745e-05, allocations: 2.312 kB / 250.4 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02728/0.02731, allocations: 21.09 MB / 271.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.03441/0.06172, allocations: 18.66 MB / 290.1 MB, free: 12.03 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006069/0.06779, allocations: 277 kB / 290.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005873/0.07366, allocations: 1.632 MB / 292 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01258/0.08623, allocations: 3.39 MB / 295.4 MB, free: 6.695 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005728/0.09196, allocations: 1.57 MB / 297 MB, free: 5.117 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1469/0.2389, allocations: 12.81 MB / 309.8 MB, free: 21.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.2403, allocations: 0.493 MB / 310.3 MB, free: 20.98 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004516/0.2448, allocations: 2.721 MB / 313 MB, free: 20.69 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001739/0.2466, allocations: 1.447 MB / 314.4 MB, free: 20.42 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003162/0.2469, allocations: 135.4 kB / 314.6 MB, free: 20.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003111/0.25, allocations: 1.15 MB / 315.7 MB, free: 20.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.2504, allocations: 0.6055 MB / 316.3 MB, free: 20.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.2521, allocations: 1.416 MB / 317.7 MB, free: 19.87 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006545/0.2587, allocations: 6.546 MB / 324.3 MB, free: 18.86 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2587, allocations: 0 / 324.3 MB, free: 18.86 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2587, allocations: 3.531 kB / 324.3 MB, free: 18.86 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002386/0.2589, allocations: 0 / 324.3 MB, free: 18.86 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.00978/0.2687, allocations: 6.826 MB / 331.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2687, allocations: 11.98 kB / 331.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.2699, allocations: 0.8579 MB / 332 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006678/0.2766, allocations: 4.997 MB / 337 MB, free: 8.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.685e-05/0.2766, allocations: 66 kB / 337 MB, free: 8.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.2769, allocations: 99.94 kB / 337.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.2789, allocations: 1.316 MB / 338.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.2789, allocations: 0 / 338.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.279, allocations: 36 kB / 338.5 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.648e-05/0.279, allocations: 40.72 kB / 338.5 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/0.2812, allocations: 1.48 MB / 340 MB, free: 5.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008558/0.2897, allocations: 5.167 MB / 345.2 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.2912, allocations: 0.8734 MB / 346.1 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.2931, allocations: 1.066 MB / 347.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05844/0.3516, allocations: 30.17 MB / 377.3 MB, free: 140 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00125/0.3528, allocations: 0.5567 MB / 377.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 3.416e-06/0.3528, allocations: 0 / 377.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.004942/0.3578, allocations: 1.944 MB / 379.8 MB, free: 13.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.398e-05/0.3578, allocations: 64.06 kB / 379.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009538/0.3674, allocations: 5.667 MB / 385.5 MB, free: 7.914 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002124/0.3676, allocations: 41.7 kB / 385.6 MB, free: 7.867 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003407/0.371, allocations: 2.954 MB / 388.5 MB, free: 4.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004782/0.3715, allocations: 307.8 kB / 388.8 MB, free: 4.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006889/0.3722, allocations: 419 kB / 389.2 MB, free: 4.199 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3723, allocations: 304 kB / 389.5 MB, free: 3.902 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009897/0.3733, allocations: 399.8 kB / 389.9 MB, free: 3.512 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.375, allocations: 1.095 MB / 391 MB, free: 2.098 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003108/0.3781, allocations: 1.612 MB / 392.6 MB, free: 264 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.948e-05/0.3781, allocations: 8 kB / 392.6 MB, free: 256 kB / 330.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005253/0.3834, allocations: 2.322 MB / 394.9 MB, free: 14.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.3834, allocations: 16.62 kB / 395 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002562/0.3837, allocations: 164 kB / 395.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.137e-05/0.3837, allocations: 35.94 kB / 395.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.385, allocations: 362.5 kB / 395.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.762e-05/0.3851, allocations: 51.23 kB / 395.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/0.388, allocations: 194.7 kB / 395.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002638/0.3883, allocations: 120 kB / 395.9 MB, free: 13.19 MB / 346.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.001998/0.3903, allocations: 0.7111 MB / 396.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/0.3916, allocations: 0.7804 MB / 397.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/0.397, allocations: 2.163 MB / 399.5 MB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.397, allocations: 11.94 kB / 399.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.397, allocations: 0 / 399.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.397, allocations: 3.984 kB / 399.5 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007024/0.404, allocations: 3.381 MB / 402.9 MB, free: 6.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002176/0.4042, allocations: 144 kB / 403.1 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.4051, allocations: 154.4 kB / 403.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/0.4051, allocations: 3.938 kB / 403.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.4052, allocations: 60 kB / 403.3 MB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.4052, allocations: 4 kB / 403.3 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4052, allocations: 0 / 403.3 MB, free: 5.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004393/0.4096, allocations: 2.22 MB / 405.5 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00181/0.4114, allocations: 0.821 MB / 406.3 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006052/0.412, allocations: 19.94 kB / 406.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.4132, allocations: 39.95 kB / 406.4 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002899/0.4135, allocations: 100.5 kB / 406.5 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/0.4136, allocations: 64 kB / 406.5 MB, free: 2.496 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.006589/0.4202, allocations: 3.636 MB / 410.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4202, allocations: 0 / 410.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003381/0.4236, allocations: 1.1 MB / 411.3 MB, free: 13.79 MB / 362.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.002319/0.4259, allocations: 1.293 MB / 412.6 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003082/0.429, allocations: 1.363 MB / 413.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.429, allocations: 4.312 kB / 413.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001357/0.4304, allocations: 0.7391 MB / 414.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004948/0.4353, allocations: 1.041 MB / 415.7 MB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/0.4514, allocations: 8.367 MB / 424.1 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00255/0.4539, allocations: 2.119 MB / 426.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002463/0.4564, allocations: 0.6888 MB / 426.9 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.4569, allocations: 284.5 kB / 427.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4569, allocations: 0 / 427.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of Templates: time 0.2135/0.6705, allocations: 57.88 MB / 485 MB, free: 109.1 MB / 378.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: 6.693657262949273]