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.00134/0.00134, allocations: 84.08 kB / 22 MB, free: 5.18 MB / 14.72 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.001405/0.001405, allocations: 161.4 kB / 25.25 MB, free: 3.023 MB / 14.72 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.305/1.305, allocations: 158.6 MB / 187 MB, free: 6.238 MB / 174.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 59.92 kB / 299.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1976, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0225/0.2201, allocations: 21.07 MB / 369.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02569/0.2458, allocations: 18.65 MB / 388.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003754/0.2496, allocations: 277 kB / 388.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004064/0.2536, allocations: 1.631 MB / 390.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009439/0.2631, allocations: 3.264 MB / 393.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004678/0.2677, allocations: 1.551 MB / 394.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02027/0.288, allocations: 12.5 MB / 407.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001174/0.2892, allocations: 0.4966 MB / 407.9 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.2922, allocations: 2.01 MB / 409.9 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003156/0.2954, allocations: 1.967 MB / 411.9 MB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005466/0.2959, allocations: 139.9 kB / 412.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004022/0.2999, allocations: 1.148 MB / 413.2 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008261/0.3007, allocations: 0.5932 MB / 413.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003079/0.3038, allocations: 1.948 MB / 415.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.3139, allocations: 6.78 MB / 422.5 MB, free: 5.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3139, allocations: 3.938 kB / 422.5 MB, free: 5.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3139, allocations: 4 kB / 422.5 MB, free: 5.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001946/0.3141, allocations: 0 / 422.5 MB, free: 5.148 MB / 382.1 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.01088/0.3249, allocations: 6.89 MB / 429.4 MB, free: 14.17 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.325, allocations: 11.98 kB / 429.4 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.326, allocations: 0.7917 MB / 430.2 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007481/0.3335, allocations: 4.407 MB / 434.6 MB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.429e-05/0.3336, allocations: 69.94 kB / 434.7 MB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/0.3338, allocations: 99.94 kB / 434.8 MB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.3362, allocations: 1.309 MB / 436.1 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.3362, allocations: 0 / 436.1 MB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.3363, allocations: 43.92 kB / 436.1 MB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.689e-05/0.3364, allocations: 35.98 kB / 436.2 MB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.3391, allocations: 1.496 MB / 437.7 MB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0108/0.3499, allocations: 5.137 MB / 442.8 MB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002062/0.3519, allocations: 0.8758 MB / 443.7 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.3537, allocations: 1.064 MB / 444.8 MB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05033/0.404, allocations: 27.12 MB / 471.9 MB, free: 2.754 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.4051, allocations: 0.5567 MB / 472.4 MB, free: 2.188 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.996e-06/0.4051, allocations: 0 / 472.4 MB, free: 2.188 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003801/0.4089, allocations: 1.915 MB / 474.3 MB, free: 268 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.409, allocations: 64.05 kB / 474.4 MB, free: 192 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1691/0.5781, allocations: 5.671 MB / 480.1 MB, free: 112.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/0.5783, allocations: 37.7 kB / 480.1 MB, free: 112.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001787/0.5801, allocations: 2.961 MB / 483.1 MB, free: 110.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/0.5804, allocations: 308.3 kB / 483.4 MB, free: 110.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004411/0.5808, allocations: 426.1 kB / 483.8 MB, free: 110.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.614e-05/0.5808, allocations: 308.9 kB / 484.1 MB, free: 110.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000751/0.5816, allocations: 397.3 kB / 484.5 MB, free: 110 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008939/0.5825, allocations: 1.092 MB / 485.6 MB, free: 109 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.5842, allocations: 1.615 MB / 487.2 MB, free: 107.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.5842, allocations: 10.56 kB / 487.2 MB, free: 107.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002889/0.5871, allocations: 2.246 MB / 489.4 MB, free: 106 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.5871, allocations: 16 kB / 489.5 MB, free: 106 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001568/0.5873, allocations: 163.3 kB / 489.6 MB, free: 105.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.068e-05/0.5873, allocations: 32 kB / 489.7 MB, free: 105.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5884, allocations: 356.6 kB / 490 MB, free: 105.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.834e-05/0.5884, allocations: 55.78 kB / 490.1 MB, free: 105.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.5901, allocations: 191.3 kB / 490.2 MB, free: 105.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.5903, allocations: 124 kB / 490.4 MB, free: 105.2 MB / 430.1 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.001192/0.5915, allocations: 0.7157 MB / 491.1 MB, free: 104.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000658/0.5922, allocations: 0.757 MB / 491.8 MB, free: 103.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.5958, allocations: 2.171 MB / 494 MB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.956e-06/0.5958, allocations: 7.938 kB / 494 MB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5958, allocations: 4.875 kB / 494 MB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.5958, allocations: 3.984 kB / 494 MB, free: 101.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004645/0.6004, allocations: 3.379 MB / 497.4 MB, free: 98.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000142/0.6006, allocations: 140 kB / 497.5 MB, free: 98.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007064/0.6013, allocations: 151.9 kB / 497.7 MB, free: 97.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.6013, allocations: 7.938 kB / 497.7 MB, free: 97.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.6014, allocations: 62.19 kB / 497.8 MB, free: 97.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.6014, allocations: 4 kB / 497.8 MB, free: 97.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.6014, allocations: 3.938 kB / 497.8 MB, free: 97.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.6041, allocations: 2.194 MB / 500 MB, free: 95.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.6054, allocations: 0.7878 MB / 0.489 GB, free: 94.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004538/0.6058, allocations: 23.66 kB / 0.489 GB, free: 94.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6069, allocations: 31.95 kB / 0.4891 GB, free: 94.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.6071, allocations: 104.6 kB / 0.4892 GB, free: 94.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.6072, allocations: 67.98 kB / 0.4892 GB, free: 94.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003438/0.6106, allocations: 3.633 MB / 0.4928 GB, free: 91.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6106, allocations: 0 / 0.4928 GB, free: 91.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001815/0.6124, allocations: 1.096 MB / 0.4938 GB, free: 90.07 MB / 430.1 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.001201/0.6136, allocations: 1.179 MB / 0.495 GB, free: 89.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00195/0.6156, allocations: 1.37 MB / 0.4963 GB, free: 87.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6156, allocations: 8.062 kB / 0.4963 GB, free: 87.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008837/0.6165, allocations: 0.7359 MB / 0.4971 GB, free: 86.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/0.6192, allocations: 0.9962 MB / 0.498 GB, free: 85.82 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007959/0.6272, allocations: 8.295 MB / 0.5061 GB, free: 77.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.6285, allocations: 2.123 MB / 0.5082 GB, free: 75.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001647/0.6301, allocations: 0.6888 MB / 0.5089 GB, free: 74.64 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.6304, allocations: 284.5 kB / 0.5091 GB, free: 74.36 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6304, allocations: 0 / 0.5091 GB, free: 74.36 MB / 430.1 MB Notification: Performance of Templates: time 0.07898/0.7094, allocations: 58.13 MB / 0.5659 GB, free: 16.07 MB / 430.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/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.589419692987576]