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.0007673/0.0007673, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009079/0.001675, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006557/0.0006557, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008092/0.001465, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9006/0.9006, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07801/0.9786, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.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.102e-06/1.102e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.494e-06/8.596e-06, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.00851/0.008518, allocations: 14.35 MB / 259.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1158/0.1243, allocations: 19.98 MB / 279.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.1256, allocations: 137.3 kB / 279.5 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.1275, allocations: 1.208 MB / 280.7 MB, free: 440 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004764/0.1323, allocations: 2.437 MB / 283.1 MB, free: 15.92 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003871/0.1362, allocations: 1.412 MB / 284.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007762/0.1439, allocations: 6.85 MB / 291.4 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003622/0.1476, allocations: 308.4 kB / 291.7 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007357/0.1549, allocations: 3.594 MB / 295.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.1559, allocations: 0.8489 MB / 296.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.1561, allocations: 72.16 kB / 296.2 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00601/0.1621, allocations: 1.27 MB / 297.5 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.1623, allocations: 282.3 kB / 297.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008227/0.1632, allocations: 0.6999 MB / 298.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00599/0.1692, allocations: 2.701 MB / 301.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.69e-05/0.1692, allocations: 0 / 301.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1692, allocations: 0 / 301.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.092e-05/0.1693, allocations: 0 / 301.1 MB, free: 10.05 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.007179/0.1764, allocations: 4.547 MB / 305.7 MB, free: 5.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1765, allocations: 8.625 kB / 305.7 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.1768, allocations: 295.6 kB / 306 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005445/0.1823, allocations: 2.114 MB / 308.1 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.1823, allocations: 41 kB / 308.1 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.744e-05/0.1824, allocations: 51.98 kB / 308.2 MB, free: 3.184 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.183, allocations: 467.5 kB / 308.6 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1831, allocations: 0 / 308.6 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.677e-05/0.1831, allocations: 16 kB / 308.7 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.668e-05/0.1831, allocations: 27.86 kB / 308.7 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.1836, allocations: 232.4 kB / 308.9 MB, free: 2.449 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008679/0.1923, allocations: 1.573 MB / 310.5 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.1926, allocations: 276.2 kB / 310.8 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003384/0.193, allocations: 320.1 kB / 311.1 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02724/0.2202, allocations: 22.97 MB / 334 MB, free: 8.656 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.2205, allocations: 215.8 kB / 334.3 MB, free: 8.438 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.984e-06/0.2205, allocations: 4 kB / 334.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005557/0.221, allocations: 484.6 kB / 334.7 MB, free: 7.961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2211, allocations: 63.33 kB / 334.8 MB, free: 7.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.2226, allocations: 2.802 MB / 337.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.2226, allocations: 29.7 kB / 337.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.223, allocations: 0.7804 MB / 338.4 MB, free: 5.016 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.718e-05/0.2231, allocations: 176.1 kB / 338.6 MB, free: 4.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.2232, allocations: 191.1 kB / 338.8 MB, free: 4.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.951e-05/0.2233, allocations: 348.1 kB / 339.1 MB, free: 4.352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.657e-05/0.2234, allocations: 77.97 kB / 339.2 MB, free: 4.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.2236, allocations: 455.7 kB / 339.6 MB, free: 3.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.2241, allocations: 0.617 MB / 340.2 MB, free: 2.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.2241, allocations: 4 kB / 340.2 MB, free: 2.914 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006007/0.2247, allocations: 0.7024 MB / 340.9 MB, free: 2.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.2247, allocations: 16.25 kB / 341 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.702e-05/0.2247, allocations: 20 kB / 341 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2248, allocations: 16 kB / 341 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004236/0.2252, allocations: 227.6 kB / 341.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.2252, allocations: 32.8 kB / 341.2 MB, free: 1.906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.2256, allocations: 111.3 kB / 341.4 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.2257, allocations: 39.94 kB / 341.4 MB, free: 1.758 MB / 314.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.0002465/0.2259, allocations: 169.5 kB / 341.6 MB, free: 1.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.2261, allocations: 253 kB / 341.8 MB, free: 1.336 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009559/0.227, allocations: 0.7999 MB / 342.6 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.227, allocations: 4 kB / 342.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.227, allocations: 0 / 342.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.2271, allocations: 3.984 kB / 342.6 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.2283, allocations: 1.607 MB / 344.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.569e-05/0.2283, allocations: 15.98 kB / 344.2 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002395/0.2285, allocations: 99.86 kB / 344.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003183/0.2289, allocations: 405.1 kB / 344.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2289, allocations: 4 kB / 344.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.2289, allocations: 20 kB / 344.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2289, allocations: 0.875 kB / 344.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2289, allocations: 4 kB / 344.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000548/0.2294, allocations: 0.6483 MB / 345.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.2296, allocations: 8 kB / 345.4 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.2299, allocations: 19.92 kB / 345.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.205e-05/0.23, allocations: 47.86 kB / 345.5 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.23, allocations: 18 kB / 345.5 MB, free: 14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008104/0.2308, allocations: 1.487 MB / 347 MB, free: 12.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2308, allocations: 0 / 347 MB, free: 12.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006947/0.2315, allocations: 0.597 MB / 347.6 MB, free: 12.11 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.0008136/0.2323, allocations: 0.9257 MB / 348.5 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004343/0.2328, allocations: 472.7 kB / 349 MB, free: 10.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.281e-05/0.2328, allocations: 48.44 kB / 349 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.233, allocations: 243.1 kB / 349.3 MB, free: 10.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.2343, allocations: 0.8947 MB / 350.2 MB, free: 9.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006129/0.2405, allocations: 4.21 MB / 354.4 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.2407, allocations: 399.2 kB / 354.8 MB, free: 4.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005472/0.2413, allocations: 357.3 kB / 355.1 MB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00076/0.242, allocations: 0.5928 MB / 355.7 MB, free: 4.023 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.242, allocations: 4 kB / 355.7 MB, free: 4.02 MB / 330.7 MB Notification: Performance of Templates: time 0.03983/0.2818, allocations: 39.69 MB / 395.4 MB, free: 12.87 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 -ignoreHideResult -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.211611879989505]