Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009497/0.0009497, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.000953/0.000953, allocations: 168.4 kB / 25.61 MB, free: 8.902 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8966/0.8966, allocations: 177.1 MB / 206.1 MB, free: 4.512 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 3.938 kB / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.939e-06/1.149e-05, allocations: 3.062 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01615/0.01616, allocations: 24.7 MB / 298.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02111/0.03728, allocations: 21.09 MB / 320 MB, free: 6.496 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.0395, allocations: 265.1 kB / 320.2 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.04213, allocations: 1.679 MB / 321.9 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006828/0.04896, allocations: 3.442 MB / 325.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003009/0.05196, allocations: 1.628 MB / 327 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01173/0.06369, allocations: 13.49 MB / 340.5 MB, free: 1.906 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007151/0.06441, allocations: 0.4887 MB / 341 MB, free: 1.383 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1297/0.1941, allocations: 5.962 MB / 346.9 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002981/0.197, allocations: 1.564 MB / 348.5 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004059/0.1974, allocations: 131.2 kB / 348.6 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.1999, allocations: 1.264 MB / 349.9 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003187/0.2003, allocations: 0.6208 MB / 350.5 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.2015, allocations: 1.418 MB / 351.9 MB, free: 28.62 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003641/0.2051, allocations: 4.65 MB / 356.6 MB, free: 27.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2051, allocations: 0 / 356.6 MB, free: 27.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.2051, allocations: 2.219 kB / 356.6 MB, free: 27.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.2053, allocations: 0 / 356.6 MB, free: 27.98 MB / 314.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.006276/0.2116, allocations: 7.246 MB / 363.8 MB, free: 24.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2116, allocations: 10.66 kB / 363.8 MB, free: 24.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006842/0.2123, allocations: 0.8475 MB / 364.7 MB, free: 23.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00349/0.2158, allocations: 4.808 MB / 369.5 MB, free: 22.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.086e-05/0.2158, allocations: 69.38 kB / 369.5 MB, free: 22.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.2159, allocations: 103.5 kB / 369.6 MB, free: 22.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000847/0.2168, allocations: 0.837 MB / 370.5 MB, free: 22.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2168, allocations: 7.969 kB / 370.5 MB, free: 22.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.285e-05/0.2169, allocations: 34.95 kB / 370.5 MB, free: 22.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.2169, allocations: 40.45 kB / 370.6 MB, free: 22.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006979/0.2176, allocations: 0.8106 MB / 371.4 MB, free: 21.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.2217, allocations: 4.298 MB / 375.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/0.2222, allocations: 0.5098 MB / 376.2 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004934/0.2227, allocations: 0.7188 MB / 376.9 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02622/0.2489, allocations: 29.96 MB / 406.9 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000444/0.2493, allocations: 417.3 kB / 407.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of pre-optimization done (n=85): time 2.345e-06/0.2493, allocations: 0 / 407.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.001388/0.2507, allocations: 1.49 MB / 408.8 MB, free: 3.836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.2507, allocations: 64.06 kB / 408.8 MB, free: 3.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/0.2546, allocations: 5.944 MB / 414.8 MB, free: 14.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.2547, allocations: 37.7 kB / 414.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00175/0.2564, allocations: 3.278 MB / 418.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.2566, allocations: 312.9 kB / 418.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003031/0.2569, allocations: 436.6 kB / 418.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.257, allocations: 480.8 kB / 419.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002219/0.2572, allocations: 195.9 kB / 419.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006318/0.2579, allocations: 1.2 MB / 420.7 MB, free: 8.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.2591, allocations: 1.551 MB / 422.2 MB, free: 7.062 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.2591, allocations: 8 kB / 422.2 MB, free: 7.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001551/0.2606, allocations: 1.912 MB / 424.1 MB, free: 5.297 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.2607, allocations: 16 kB / 424.2 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/0.2608, allocations: 164 kB / 424.3 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.2608, allocations: 32 kB / 424.4 MB, free: 5.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006111/0.2614, allocations: 356.5 kB / 424.7 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.376e-05/0.2614, allocations: 51.86 kB / 424.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000939/0.2624, allocations: 186.1 kB / 424.9 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.2625, allocations: 112 kB / 425 MB, free: 4.438 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.0004768/0.263, allocations: 269.5 kB / 425.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004567/0.2634, allocations: 0.7687 MB / 426.1 MB, free: 3.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/0.2655, allocations: 1.863 MB / 427.9 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2655, allocations: 11.98 kB / 427.9 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2656, allocations: 0 / 427.9 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2656, allocations: 7.922 kB / 428 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.2689, allocations: 3.784 MB / 431.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001123/0.269, allocations: 140 kB / 431.9 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.2694, allocations: 138.5 kB / 432 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2694, allocations: 4 kB / 432 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.768e-05/0.2694, allocations: 68.05 kB / 432.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.2694, allocations: 7.938 kB / 432.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2694, allocations: 2.406 kB / 432.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.2707, allocations: 1.758 MB / 433.9 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.2715, allocations: 0.8132 MB / 434.7 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.2718, allocations: 12 kB / 434.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005801/0.2723, allocations: 35.91 kB / 434.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2725, allocations: 92.56 kB / 434.8 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.819e-05/0.2725, allocations: 67.98 kB / 434.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002083/0.2746, allocations: 3.019 MB / 437.9 MB, free: 8.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2746, allocations: 4 kB / 437.9 MB, free: 8.688 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001355/0.276, allocations: 1.089 MB / 439 MB, free: 7.598 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.001273/0.2773, allocations: 1.426 MB / 440.4 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000883/0.2781, allocations: 1.089 MB / 441.5 MB, free: 5.352 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2781, allocations: 0 / 441.5 MB, free: 5.352 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.2786, allocations: 0.6076 MB / 442.1 MB, free: 4.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.281, allocations: 1.221 MB / 443.3 MB, free: 3.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007419/0.2885, allocations: 7.765 MB / 451.1 MB, free: 11.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008144/0.2893, allocations: 0.6894 MB / 451.8 MB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001366/0.2906, allocations: 0.6846 MB / 452.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/0.2926, allocations: 1.302 MB / 453.8 MB, free: 8.949 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2926, allocations: 0 / 453.8 MB, free: 8.949 MB / 378.7 MB Notification: Performance of Templates: time 0.1759/0.4685, allocations: 66.7 MB / 0.5083 GB, free: 130.5 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.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: 4.426381084136665]