Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001227/0.001227, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009229/0.0009229, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8575/0.8575, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.012e-06/1.012e-06, allocations: 0 / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007e-05/1.108e-05, allocations: 2.312 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008601/0.008612, allocations: 14.26 MB / 287.6 MB, free: 2.773 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1113/0.1199, allocations: 19.9 MB / 307.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.1213, allocations: 136.1 kB / 307.7 MB, free: 9.371 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.1232, allocations: 1.212 MB / 308.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004137/0.1273, allocations: 2.494 MB / 311.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.1299, allocations: 1.46 MB / 312.8 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004703/0.1346, allocations: 6.995 MB / 319.8 MB, free: 2.336 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.135, allocations: 303 kB / 320.1 MB, free: 2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.1371, allocations: 3.09 MB / 323.2 MB, free: 14.9 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008242/0.1379, allocations: 0.8408 MB / 324 MB, free: 14.06 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.138, allocations: 76 kB / 324.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.1398, allocations: 1.21 MB / 325.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.14, allocations: 349.5 kB / 325.7 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005828/0.1406, allocations: 0.7637 MB / 326.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0022/0.1428, allocations: 2.883 MB / 329.3 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1428, allocations: 3.984 kB / 329.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1428, allocations: 0 / 329.3 MB, free: 8.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.154e-05/0.1428, allocations: 0 / 329.3 MB, free: 8.766 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.0027/0.1455, allocations: 3.818 MB / 333.1 MB, free: 4.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.1456, allocations: 11.98 kB / 333.1 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.1458, allocations: 295.6 kB / 333.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.1476, allocations: 2.116 MB / 335.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.1476, allocations: 37 kB / 335.6 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.669e-05/0.1477, allocations: 55.95 kB / 335.6 MB, free: 2.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.1482, allocations: 463.5 kB / 336.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1482, allocations: 0 / 336.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.1482, allocations: 23.94 kB / 336.1 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.1482, allocations: 19.98 kB / 336.1 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000398/0.1486, allocations: 228.5 kB / 336.4 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.1506, allocations: 1.561 MB / 337.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.1509, allocations: 292.8 kB / 338.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.1512, allocations: 320.2 kB / 338.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02299/0.1742, allocations: 23.02 MB / 361.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.1744, allocations: 221.8 kB / 361.8 MB, free: 7.223 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.1744, allocations: 3.938 kB / 361.8 MB, free: 7.219 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005274/0.175, allocations: 479.3 kB / 362.2 MB, free: 6.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.175, allocations: 67.39 kB / 362.3 MB, free: 6.672 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.1766, allocations: 2.791 MB / 365.1 MB, free: 3.875 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.1767, allocations: 37.7 kB / 365.1 MB, free: 3.832 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/0.177, allocations: 0.7845 MB / 365.9 MB, free: 3.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.716e-05/0.1771, allocations: 182.5 kB / 366.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.1773, allocations: 186.3 kB / 366.3 MB, free: 2.668 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.525e-05/0.1774, allocations: 341.9 kB / 366.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1775, allocations: 77.95 kB / 366.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.1777, allocations: 456.2 kB / 367.1 MB, free: 1.629 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.1781, allocations: 0.6131 MB / 367.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1782, allocations: 4 kB / 367.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000619/0.1788, allocations: 0.7085 MB / 368.5 MB, free: 128 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1788, allocations: 8 kB / 368.5 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-05/0.1788, allocations: 22.62 kB / 368.5 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1789, allocations: 20 kB / 368.5 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.1792, allocations: 203.6 kB / 368.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1792, allocations: 23.92 kB / 368.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.1796, allocations: 107.5 kB / 368.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.1797, allocations: 36 kB / 368.9 MB, free: 15.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00026/0.18, allocations: 171.1 kB / 369 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.1801, allocations: 255.7 kB / 369.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009876/0.1811, allocations: 0.8022 MB / 370.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1811, allocations: 4 kB / 370.1 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.1811, allocations: 4 kB / 370.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1811, allocations: 7.922 kB / 370.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.1825, allocations: 1.605 MB / 371.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.288e-05/0.1826, allocations: 11.98 kB / 371.7 MB, free: 12.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.1828, allocations: 79.94 kB / 371.8 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1828, allocations: 7.938 kB / 371.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.1828, allocations: 12 kB / 371.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1828, allocations: 3.938 kB / 371.8 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1828, allocations: 4 kB / 371.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005643/0.1834, allocations: 0.634 MB / 372.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003648/0.1837, allocations: 409.2 kB / 372.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.1839, allocations: 8 kB / 372.9 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.1842, allocations: 32.78 kB / 372.9 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.222e-05/0.1843, allocations: 43.81 kB / 372.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.1843, allocations: 15.98 kB / 373 MB, free: 11.54 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008978/0.1852, allocations: 1.487 MB / 374.4 MB, free: 10.06 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1852, allocations: 0 / 374.4 MB, free: 10.06 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007551/0.186, allocations: 0.6008 MB / 375 MB, free: 9.457 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0008446/0.1868, allocations: 0.9282 MB / 376 MB, free: 8.523 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.1873, allocations: 457 kB / 376.4 MB, free: 8.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.769e-05/0.1873, allocations: 44.5 kB / 376.5 MB, free: 8.008 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.1875, allocations: 240.9 kB / 376.7 MB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.1888, allocations: 0.6358 MB / 377.3 MB, free: 7.121 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003334/0.1921, allocations: 4.194 MB / 381.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.1924, allocations: 402.2 kB / 381.9 MB, free: 2.445 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005429/0.1929, allocations: 365.2 kB / 382.3 MB, free: 2.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007585/0.1937, allocations: 0.5889 MB / 382.9 MB, free: 1.488 MB / 330.7 MB Notification: Performance of SimCode: time 7.81e-07/0.1937, allocations: 0 / 382.9 MB, free: 1.488 MB / 330.7 MB Notification: Performance of Templates: time 0.03964/0.2333, allocations: 38.2 MB / 421.1 MB, free: 11.8 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.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: 3.125178653281182]