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.001597/0.001597, allocations: 84.92 kB / 20.68 MB, free: 1.035 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.001676/0.001676, allocations: 164.6 kB / 23.95 MB, free: 4.168 MB / 14.72 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.493/1.493, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 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.152e-06/1.152e-06, allocations: 0 / 325.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.659e-05, allocations: 2.281 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02245/0.02246, allocations: 22.26 MB / 347.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02914/0.0516, allocations: 19.56 MB / 366.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004994/0.05659, allocations: 269.1 kB / 367.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004305/0.0609, allocations: 1.687 MB / 368.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01131/0.07221, allocations: 3.426 MB / 372.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004791/0.077, allocations: 1.636 MB / 373.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02207/0.09907, allocations: 13.23 MB / 387.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.1004, allocations: 0.5002 MB / 387.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004764/0.1052, allocations: 2.984 MB / 390.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002545/0.1077, allocations: 1.502 MB / 392.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003962/0.1081, allocations: 132 kB / 392.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003575/0.1117, allocations: 1.272 MB / 393.5 MB, free: 468 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006724/0.1124, allocations: 0.6009 MB / 394.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00232/0.1147, allocations: 1.406 MB / 395.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009152/0.1239, allocations: 6.499 MB / 402 MB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1239, allocations: 0 / 402 MB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1239, allocations: 0 / 402 MB, free: 7.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001561/0.124, allocations: 7.938 kB / 402 MB, free: 7.91 MB / 366.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.01014/0.1342, allocations: 6.773 MB / 408.8 MB, free: 1.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1342, allocations: 16.02 kB / 408.8 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009817/0.1352, allocations: 0.7764 MB / 409.6 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007195/0.1424, allocations: 4.379 MB / 414 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.6e-05/0.1425, allocations: 69.94 kB / 414 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/0.1427, allocations: 107.9 kB / 414.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002434/0.1451, allocations: 1.305 MB / 415.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1452, allocations: 0 / 415.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.1453, allocations: 39.94 kB / 415.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-05/0.1453, allocations: 39.97 kB / 415.5 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002729/0.1481, allocations: 1.48 MB / 417 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00988/0.1579, allocations: 5.125 MB / 422.1 MB, free: 3.516 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.1598, allocations: 0.868 MB / 423 MB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/0.1615, allocations: 1.064 MB / 424.1 MB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05124/0.2128, allocations: 27.06 MB / 451.1 MB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001135/0.2139, allocations: 0.5606 MB / 451.7 MB, free: 5.195 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.406e-06/0.2139, allocations: 4 kB / 451.7 MB, free: 5.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.0037/0.2176, allocations: 1.911 MB / 453.6 MB, free: 3.273 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.2177, allocations: 60.06 kB / 453.6 MB, free: 3.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00783/0.2255, allocations: 5.629 MB / 459.3 MB, free: 13.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.2257, allocations: 41.7 kB / 459.3 MB, free: 13.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004411/0.2301, allocations: 2.961 MB / 462.3 MB, free: 10.58 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005801/0.2307, allocations: 305.4 kB / 462.6 MB, free: 10.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008998/0.2316, allocations: 422.9 kB / 463 MB, free: 9.863 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.2318, allocations: 313 kB / 463.3 MB, free: 9.555 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.2332, allocations: 403.8 kB / 463.7 MB, free: 9.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002276/0.2355, allocations: 1.087 MB / 464.8 MB, free: 7.742 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003971/0.2395, allocations: 1.611 MB / 466.4 MB, free: 5.793 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.975e-05/0.2395, allocations: 8 kB / 466.4 MB, free: 5.785 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006395/0.2459, allocations: 2.233 MB / 468.6 MB, free: 3.547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/0.2459, allocations: 16 kB / 468.6 MB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003345/0.2463, allocations: 164.8 kB / 468.8 MB, free: 3.371 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.32e-05/0.2463, allocations: 32 kB / 468.8 MB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.2484, allocations: 363.4 kB / 469.2 MB, free: 2.984 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.178e-05/0.2485, allocations: 51.73 kB / 469.2 MB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00354/0.252, allocations: 194.6 kB / 469.4 MB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003336/0.2523, allocations: 124 kB / 469.6 MB, free: 2.621 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.002434/0.2548, allocations: 0.7121 MB / 470.3 MB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001833/0.2566, allocations: 0.7492 MB / 471 MB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1602/0.4168, allocations: 2.142 MB / 473.2 MB, free: 131.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.4169, allocations: 12.31 kB / 473.2 MB, free: 131.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4169, allocations: 0.9688 kB / 473.2 MB, free: 131.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/0.4169, allocations: 3.234 kB / 473.2 MB, free: 131.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006193/0.4231, allocations: 3.359 MB / 476.5 MB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002048/0.4233, allocations: 143.8 kB / 476.7 MB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008034/0.4241, allocations: 151 kB / 476.8 MB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/0.4241, allocations: 3.969 kB / 476.8 MB, free: 130.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.4242, allocations: 60.59 kB / 476.9 MB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.4242, allocations: 7.906 kB / 476.9 MB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4242, allocations: 3.344 kB / 476.9 MB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003755/0.4279, allocations: 2.185 MB / 479.1 MB, free: 129.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/0.4294, allocations: 0.7832 MB / 479.9 MB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000554/0.4299, allocations: 13.88 kB / 479.9 MB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.4311, allocations: 34.83 kB / 479.9 MB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.4314, allocations: 99.84 kB / 480 MB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/0.4316, allocations: 70.06 kB / 480.1 MB, free: 129.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005747/0.4373, allocations: 3.608 MB / 483.7 MB, free: 128.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4373, allocations: 2.969 kB / 483.7 MB, free: 128.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00238/0.4397, allocations: 1.088 MB / 484.8 MB, free: 128.2 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.001499/0.4412, allocations: 1.276 MB / 486.1 MB, free: 128.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.4433, allocations: 1.372 MB / 487.4 MB, free: 127.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4433, allocations: 0 / 487.4 MB, free: 127.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009253/0.4442, allocations: 0.7279 MB / 488.2 MB, free: 127.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004287/0.4485, allocations: 1.178 MB / 489.3 MB, free: 126.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008192/0.4567, allocations: 8.13 MB / 497.5 MB, free: 119.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.4579, allocations: 2.105 MB / 499.6 MB, free: 117.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001817/0.4597, allocations: 0.6824 MB / 0.4885 GB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.4601, allocations: 284.5 kB / 0.4888 GB, free: 116.3 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4601, allocations: 4 kB / 0.4888 GB, free: 116.3 MB / 430.1 MB Notification: Performance of Templates: time 0.08147/0.5415, allocations: 57.35 MB / 0.5448 GB, free: 59.87 MB / 430.1 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.560650795698166]