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.001074/0.001074, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00128/0.002354, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007475/0.0007475, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009875/0.001735, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9586/0.9586, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07469/1.033, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.382e-06/1.382e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/1.976e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02242/0.02244, allocations: 24.85 MB / 269.6 MB, free: 5.277 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1319/0.1543, allocations: 21.74 MB / 291.3 MB, free: 15.71 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003459/0.1577, allocations: 273 kB / 291.6 MB, free: 15.53 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002683/0.1604, allocations: 1.755 MB / 293.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006425/0.1669, allocations: 3.394 MB / 296.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003475/0.1703, allocations: 1.589 MB / 298.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.1809, allocations: 13.12 MB / 311.4 MB, free: 5.113 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009133/0.1818, allocations: 0.5496 MB / 312 MB, free: 4.523 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005772/0.1876, allocations: 6.872 MB / 318.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001824/0.1894, allocations: 1.566 MB / 320.4 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003482/0.1898, allocations: 132 kB / 320.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003104/0.1929, allocations: 1.321 MB / 321.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003109/0.1932, allocations: 0.4919 MB / 322.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00118/0.1944, allocations: 1.293 MB / 323.6 MB, free: 8.941 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003384/0.1977, allocations: 4.388 MB / 328 MB, free: 4.906 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.488e-05/0.1977, allocations: 4 kB / 328 MB, free: 4.902 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1978, allocations: 0 / 328 MB, free: 4.902 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001519/0.1979, allocations: 4 kB / 328 MB, free: 4.898 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.005866/0.2038, allocations: 8.01 MB / 336 MB, free: 12.91 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.2038, allocations: 8.031 kB / 336.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004285/0.2042, allocations: 0.5266 MB / 336.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00342/0.2077, allocations: 3.928 MB / 340.5 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.2077, allocations: 66 kB / 340.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.2078, allocations: 99.92 kB / 340.7 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000822/0.2086, allocations: 0.7813 MB / 341.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.2087, allocations: 0 / 341.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-05/0.2087, allocations: 36 kB / 341.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.2088, allocations: 43.95 kB / 341.5 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006072/0.2094, allocations: 431.1 kB / 341.9 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.2128, allocations: 2.901 MB / 344.9 MB, free: 3.879 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.2133, allocations: 478.1 kB / 345.3 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.2138, allocations: 0.6277 MB / 345.9 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04533/0.2591, allocations: 45.39 MB / 391.3 MB, free: 3.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003698/0.2595, allocations: 339.4 kB / 391.7 MB, free: 3.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.164e-06/0.2595, allocations: 0 / 391.7 MB, free: 3.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.0008421/0.2603, allocations: 0.8478 MB / 392.5 MB, free: 2.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.2604, allocations: 64.06 kB / 392.6 MB, free: 2.414 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.2633, allocations: 5.068 MB / 397.6 MB, free: 13.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.2633, allocations: 37.7 kB / 397.7 MB, free: 13.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006642/0.264, allocations: 1.393 MB / 399.1 MB, free: 11.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.2641, allocations: 309.4 kB / 399.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002499/0.2644, allocations: 346.9 kB / 399.7 MB, free: 11.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.827e-05/0.2644, allocations: 305.1 kB / 400 MB, free: 10.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.2646, allocations: 131.9 kB / 400.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.265, allocations: 0.8407 MB / 401 MB, free: 9.668 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.266, allocations: 1.244 MB / 402.2 MB, free: 8.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.2661, allocations: 8 kB / 402.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001051/0.2671, allocations: 1.29 MB / 403.5 MB, free: 6.781 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.2671, allocations: 16 kB / 403.5 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.863e-05/0.2672, allocations: 43.98 kB / 403.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.2672, allocations: 32.81 kB / 403.6 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006703/0.2679, allocations: 415.3 kB / 404 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.22e-05/0.2679, allocations: 43.86 kB / 404.1 MB, free: 6.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.2687, allocations: 190.7 kB / 404.3 MB, free: 6.055 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.2688, allocations: 74.7 kB / 404.3 MB, free: 5.984 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.0004223/0.2693, allocations: 221.9 kB / 404.5 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.2696, allocations: 475.3 kB / 405 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00177/0.2713, allocations: 1.467 MB / 406.5 MB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2714, allocations: 8 kB / 406.5 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.2714, allocations: 0 / 406.5 MB, free: 3.816 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.2714, allocations: 3.984 kB / 406.5 MB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.2738, allocations: 2.776 MB / 409.3 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.708e-05/0.2739, allocations: 19.98 kB / 409.3 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.2743, allocations: 179.8 kB / 409.5 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005916/0.2749, allocations: 0.739 MB / 410.2 MB, free: 36 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2749, allocations: 4 kB / 410.2 MB, free: 32 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.2749, allocations: 23.98 kB / 410.2 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.2749, allocations: 7.938 kB / 410.2 MB, free: 0 / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2749, allocations: 0.875 kB / 410.2 MB, free: 0 / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008983/0.2758, allocations: 1.06 MB / 411.3 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/0.2761, allocations: 12 kB / 411.3 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.2766, allocations: 27.97 kB / 411.3 MB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001234/0.2768, allocations: 64.44 kB / 411.4 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/0.2768, allocations: 23.98 kB / 411.4 MB, free: 14.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001553/0.2784, allocations: 2.728 MB / 414.1 MB, free: 12.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2784, allocations: 0 / 414.1 MB, free: 12.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001294/0.2797, allocations: 1.089 MB / 415.2 MB, free: 11 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.001539/0.2812, allocations: 1.459 MB / 416.7 MB, free: 9.539 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007524/0.282, allocations: 0.87 MB / 417.6 MB, free: 8.621 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.933e-05/0.282, allocations: 94.77 kB / 417.7 MB, free: 8.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004004/0.2824, allocations: 482 kB / 418.1 MB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.101/0.3834, allocations: 12.11 MB / 430.2 MB, free: 106.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.3978, allocations: 7.62 MB / 437.9 MB, free: 103.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.3984, allocations: 0.7032 MB / 438.6 MB, free: 103 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001507/0.3999, allocations: 0.6854 MB / 439.2 MB, free: 102.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/0.4018, allocations: 1.073 MB / 440.3 MB, free: 102.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4018, allocations: 0 / 440.3 MB, free: 102.9 MB / 394.7 MB Notification: Performance of Templates: time 0.07542/0.4772, allocations: 68.5 MB / 0.4969 GB, free: 49.19 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.101166448555887]