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.001892/0.001892, allocations: 92.31 kB / 20.96 MB, free: 3.469 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.002348/0.002348, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 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 1.527/1.527, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.784e-06/1.784e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.152e-05/3.33e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.145/0.145, allocations: 22.24 MB / 294.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02177/0.1668, allocations: 19.56 MB / 314.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.1711, allocations: 268.5 kB / 314.4 MB, free: 3.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003992/0.1751, allocations: 1.683 MB / 316.1 MB, free: 2.527 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009713/0.1848, allocations: 3.441 MB / 319.5 MB, free: 15.68 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005225/0.1901, allocations: 1.628 MB / 321.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02257/0.2126, allocations: 13.24 MB / 334.4 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002178/0.2148, allocations: 0.4892 MB / 334.9 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006287/0.2211, allocations: 2.988 MB / 337.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003758/0.2248, allocations: 1.494 MB / 339.3 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005441/0.2254, allocations: 136 kB / 339.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005222/0.2306, allocations: 1.28 MB / 340.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007789/0.2314, allocations: 0.6009 MB / 341.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003601/0.235, allocations: 1.41 MB / 342.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.2466, allocations: 6.499 MB / 349.3 MB, free: 3.629 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2466, allocations: 0 / 349.3 MB, free: 3.629 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2466, allocations: 0 / 349.3 MB, free: 3.629 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002013/0.2468, allocations: 0 / 349.3 MB, free: 3.629 MB / 298.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.01152/0.2583, allocations: 6.786 MB / 356 MB, free: 12.76 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2584, allocations: 11.97 kB / 356.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/0.2597, allocations: 0.8467 MB / 356.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00853/0.2682, allocations: 4.969 MB / 361.9 MB, free: 6.809 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.762e-05/0.2683, allocations: 66 kB / 361.9 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002638/0.2685, allocations: 99.91 kB / 362 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/0.2711, allocations: 1.309 MB / 363.3 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.2712, allocations: 0 / 363.3 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.2713, allocations: 39.94 kB / 363.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.335e-05/0.2713, allocations: 39.97 kB / 363.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002863/0.2742, allocations: 1.484 MB / 364.9 MB, free: 3.754 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.2851, allocations: 5.144 MB / 370.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.287, allocations: 0.8716 MB / 370.9 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/0.2888, allocations: 1.064 MB / 372 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0563/0.3451, allocations: 30.08 MB / 402.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.3463, allocations: 0.5645 MB / 402.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 3.086e-06/0.3463, allocations: 0 / 402.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.004363/0.3506, allocations: 1.931 MB / 404.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.3507, allocations: 64 kB / 404.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008842/0.3595, allocations: 5.621 MB / 410.3 MB, free: 5.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.3597, allocations: 41.7 kB / 410.3 MB, free: 5.547 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003329/0.3631, allocations: 2.965 MB / 413.3 MB, free: 2.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004867/0.3636, allocations: 309.4 kB / 413.6 MB, free: 2.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006371/0.3642, allocations: 411 kB / 414 MB, free: 1.859 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3644, allocations: 309 kB / 414.3 MB, free: 1.555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009538/0.3653, allocations: 403.8 kB / 414.7 MB, free: 1.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.3669, allocations: 1.088 MB / 415.7 MB, free: 15.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00285/0.3698, allocations: 1.619 MB / 417.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/0.3698, allocations: 8 kB / 417.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004608/0.3744, allocations: 2.311 MB / 419.7 MB, free: 11.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.14e-05/0.3744, allocations: 12.97 kB / 419.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002365/0.3747, allocations: 164 kB / 419.9 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.597e-05/0.3747, allocations: 36 kB / 419.9 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.376, allocations: 362.4 kB / 420.2 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.085e-05/0.3761, allocations: 47.8 kB / 420.3 MB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.3781, allocations: 194.6 kB / 420.5 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002192/0.3783, allocations: 120 kB / 420.6 MB, free: 10.55 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.001528/0.3799, allocations: 0.7199 MB / 421.3 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/0.381, allocations: 0.7687 MB / 422.1 MB, free: 9.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/0.3862, allocations: 2.139 MB / 424.2 MB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.3862, allocations: 12 kB / 424.2 MB, free: 6.895 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3863, allocations: 3.984 kB / 424.2 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3863, allocations: 0 / 424.2 MB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006446/0.3927, allocations: 3.368 MB / 427.6 MB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002064/0.3929, allocations: 140 kB / 427.7 MB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.3937, allocations: 151.8 kB / 427.9 MB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.3937, allocations: 4.062 kB / 427.9 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.3939, allocations: 63.98 kB / 428 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.3939, allocations: 4 kB / 428 MB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3939, allocations: 3.938 kB / 428 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004319/0.3982, allocations: 2.205 MB / 430.2 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.4, allocations: 0.821 MB / 431 MB, free: 44 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005685/0.4006, allocations: 16 kB / 431 MB, free: 28 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.123/0.5236, allocations: 29.95 kB / 431 MB, free: 126.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003787/0.524, allocations: 104 kB / 431.1 MB, free: 126.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/0.5241, allocations: 66.84 kB / 431.2 MB, free: 126.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006425/0.5305, allocations: 3.609 MB / 434.8 MB, free: 126 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5305, allocations: 0.75 kB / 434.8 MB, free: 126 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002858/0.5334, allocations: 1.086 MB / 435.9 MB, free: 126 MB / 378.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.001755/0.5352, allocations: 1.291 MB / 437.2 MB, free: 125.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.5376, allocations: 1.367 MB / 438.6 MB, free: 125.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5376, allocations: 4.438 kB / 438.6 MB, free: 125.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.5386, allocations: 0.7381 MB / 439.3 MB, free: 124.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/0.5439, allocations: 1.226 MB / 440.5 MB, free: 124.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009703/0.5536, allocations: 8.312 MB / 448.8 MB, free: 120.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.555, allocations: 2.108 MB / 450.9 MB, free: 119.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002191/0.5572, allocations: 0.6885 MB / 451.6 MB, free: 119 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.5576, allocations: 280.5 kB / 451.9 MB, free: 118.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.5576, allocations: 0 / 451.9 MB, free: 118.7 MB / 378.7 MB Notification: Performance of Templates: time 0.0853/0.6429, allocations: 57.65 MB / 0.4976 GB, free: 62.33 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.6660114279948175]