Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0007258/0.0007258, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001332/0.002058, 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.0006882/0.0006882, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008587/0.001547, 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.8781/0.8781, allocations: 177.4 MB / 189.9 MB, free: 4.828 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07525/0.9534, allocations: 53.86 MB / 243.7 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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175e-05/1.299e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01193/0.01194, allocations: 13.79 MB / 258.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1206/0.1326, allocations: 19.91 MB / 278.7 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.1346, allocations: 133.8 kB / 278.8 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002315/0.1369, allocations: 1.174 MB / 280 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005522/0.1425, allocations: 2.389 MB / 282.4 MB, free: 24 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003744/0.1462, allocations: 1.409 MB / 283.8 MB, free: 15.8 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007542/0.1537, allocations: 6.726 MB / 290.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005964/0.1543, allocations: 298 kB / 290.8 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003403/0.1577, allocations: 3.526 MB / 294.4 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009014/0.1586, allocations: 0.8237 MB / 295.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001776/0.1588, allocations: 72.62 kB / 295.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002499/0.1613, allocations: 1.267 MB / 296.5 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.1615, allocations: 267.4 kB / 296.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006671/0.1622, allocations: 0.6791 MB / 297.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002427/0.1646, allocations: 2.633 MB / 300.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.604e-05/0.1646, allocations: 0 / 300.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1646, allocations: 0 / 300.1 MB, free: 10.76 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.375e-05/0.1647, allocations: 3.938 kB / 300.1 MB, free: 10.76 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.003265/0.1679, allocations: 4.367 MB / 304.5 MB, free: 6.668 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.168, allocations: 16.56 kB / 304.5 MB, free: 6.652 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.1682, allocations: 283.7 kB / 304.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.17, allocations: 2.051 MB / 306.8 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.17, allocations: 40.98 kB / 306.8 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/0.1701, allocations: 58.44 kB / 306.9 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.1706, allocations: 471.4 kB / 307.4 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1706, allocations: 0 / 307.4 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.1707, allocations: 16 kB / 307.4 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.1707, allocations: 23.92 kB / 307.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.171, allocations: 228.5 kB / 307.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.173, allocations: 1.573 MB / 309.2 MB, free: 1.914 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.1733, allocations: 266.5 kB / 309.5 MB, free: 1.652 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.1736, allocations: 332.5 kB / 309.8 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02217/0.1957, allocations: 22.96 MB / 332.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.196, allocations: 214.5 kB / 332.9 MB, free: 9.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.404e-06/0.196, allocations: 0 / 332.9 MB, free: 9.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005361/0.1966, allocations: 482 kB / 333.4 MB, free: 8.996 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.1966, allocations: 67.33 kB / 333.5 MB, free: 8.918 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001445/0.198, allocations: 2.663 MB / 336.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.1981, allocations: 37.7 kB / 336.2 MB, free: 6.754 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.1984, allocations: 0.7485 MB / 336.9 MB, free: 6.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.382e-05/0.1985, allocations: 179 kB / 337.1 MB, free: 5.996 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.1987, allocations: 188.2 kB / 337.3 MB, free: 5.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.1988, allocations: 349.3 kB / 337.6 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.76e-05/0.1989, allocations: 69.97 kB / 337.7 MB, free: 5.426 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.1991, allocations: 457.8 kB / 338.1 MB, free: 4.828 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004379/0.1995, allocations: 0.6257 MB / 338.8 MB, free: 4.059 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.1995, allocations: 4 kB / 338.8 MB, free: 4.055 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006303/0.2002, allocations: 0.6954 MB / 339.5 MB, free: 3.359 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2002, allocations: 8 kB / 339.5 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.774e-05/0.2002, allocations: 20 kB / 339.5 MB, free: 3.332 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.2003, allocations: 20 kB / 339.5 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/0.2007, allocations: 231.9 kB / 339.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.2007, allocations: 28.8 kB / 339.8 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/0.2011, allocations: 103.3 kB / 339.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.381e-05/0.2012, allocations: 43.94 kB / 339.9 MB, free: 2.914 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.0002547/0.2014, allocations: 169.5 kB / 340.1 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.2016, allocations: 248.9 kB / 340.3 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009871/0.2026, allocations: 0.7857 MB / 341.1 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2026, allocations: 4 kB / 341.1 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.2026, allocations: 0 / 341.1 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2026, allocations: 3.984 kB / 341.1 MB, free: 1.699 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.2039, allocations: 1.554 MB / 342.7 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.689e-05/0.2039, allocations: 11.98 kB / 342.7 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.2042, allocations: 103.9 kB / 342.8 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.2045, allocations: 393.3 kB / 343.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2045, allocations: 3.938 kB / 343.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.2046, allocations: 15.94 kB / 343.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2046, allocations: 4.875 kB / 343.2 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.2046, allocations: 3.938 kB / 343.2 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005657/0.2051, allocations: 0.6311 MB / 343.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.2053, allocations: 12 kB / 343.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.2056, allocations: 19.92 kB / 343.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.2057, allocations: 39.92 kB / 343.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-05/0.2057, allocations: 22.03 kB / 343.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008431/0.2066, allocations: 1.414 MB / 345.3 MB, free: 14 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2066, allocations: 0 / 345.3 MB, free: 14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008215/0.2074, allocations: 0.5853 MB / 345.9 MB, free: 13.41 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.0008954/0.2083, allocations: 0.9325 MB / 346.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005043/0.2088, allocations: 468 kB / 347.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.145e-05/0.2088, allocations: 51.14 kB / 347.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.209, allocations: 243.4 kB / 347.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.2104, allocations: 0.8579 MB / 348.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006444/0.2168, allocations: 4.021 MB / 352.5 MB, free: 6.914 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.2171, allocations: 388.7 kB / 352.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006598/0.2177, allocations: 357.2 kB / 353.2 MB, free: 6.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007694/0.2185, allocations: 0.5694 MB / 353.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2185, allocations: 0 / 353.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of Templates: time 0.04195/0.2604, allocations: 38.71 MB / 392.5 MB, free: 15.38 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.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.142113327048719]