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.001491/0.001491, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001682/0.001682, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9487/0.9487, allocations: 177 MB / 204.8 MB, free: 5.57 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.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 2.214e-06/2.214e-06, allocations: 0 / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.53e-05/3.751e-05, allocations: 5.266 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01164/0.01168, allocations: 14.05 MB / 287 MB, free: 3.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1442/0.1559, allocations: 19.79 MB / 306.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002639/0.1586, allocations: 134 kB / 306.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00306/0.1616, allocations: 1.147 MB / 308 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007468/0.1691, allocations: 2.428 MB / 310.4 MB, free: 8.059 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004986/0.1741, allocations: 1.443 MB / 311.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007578/0.1817, allocations: 6.908 MB / 318.8 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00073/0.1824, allocations: 257.8 kB / 319 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002107/0.1845, allocations: 1.566 MB / 320.6 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008897/0.1854, allocations: 0.7939 MB / 321.4 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002099/0.1856, allocations: 79.98 kB / 321.5 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003166/0.1888, allocations: 1.206 MB / 322.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.189, allocations: 333.6 kB / 323 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.1903, allocations: 0.7443 MB / 323.8 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004087/0.1944, allocations: 2.79 MB / 326.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.1944, allocations: 0 / 326.5 MB, free: 11.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1944, allocations: 4 kB / 326.6 MB, free: 11.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001048/0.1945, allocations: 0 / 326.6 MB, free: 11.74 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.004595/0.1991, allocations: 3.922 MB / 330.5 MB, free: 7.754 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.1992, allocations: 11.98 kB / 330.5 MB, free: 7.742 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005107/0.1997, allocations: 457.4 kB / 330.9 MB, free: 7.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.2022, allocations: 2.587 MB / 333.5 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.2022, allocations: 33 kB / 333.6 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.2023, allocations: 55.95 kB / 333.6 MB, free: 4.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007607/0.2031, allocations: 0.5397 MB / 334.1 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2031, allocations: 0 / 334.1 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.2031, allocations: 19.94 kB / 334.2 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.2031, allocations: 23.98 kB / 334.2 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000592/0.2037, allocations: 490.3 kB / 334.7 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003792/0.2075, allocations: 2.867 MB / 337.5 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000483/0.208, allocations: 321.4 kB / 337.8 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/0.2085, allocations: 417.8 kB / 338.3 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01643/0.2249, allocations: 15.23 MB / 353.5 MB, free: 168 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003802/0.2253, allocations: 279.7 kB / 353.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.475e-06/0.2253, allocations: 4 kB / 353.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001113/0.2264, allocations: 0.866 MB / 354.6 MB, free: 15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.2264, allocations: 59.34 kB / 354.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00258/0.229, allocations: 3.169 MB / 357.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.229, allocations: 41.69 kB / 357.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.2303, allocations: 1.662 MB / 359.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.2304, allocations: 170.6 kB / 359.7 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.2306, allocations: 244 kB / 360 MB, free: 9.598 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2308, allocations: 0.5043 MB / 360.5 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.2309, allocations: 133.9 kB / 360.6 MB, free: 8.953 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003958/0.2313, allocations: 0.6471 MB / 361.2 MB, free: 8.066 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006761/0.232, allocations: 0.8578 MB / 362.1 MB, free: 6.969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.232, allocations: 4 kB / 362.1 MB, free: 6.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001073/0.2331, allocations: 1.072 MB / 363.2 MB, free: 5.891 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.2331, allocations: 12 kB / 363.2 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.538e-05/0.2332, allocations: 84.89 kB / 363.3 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.2332, allocations: 19.94 kB / 363.3 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/0.2336, allocations: 199.7 kB / 363.5 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.2337, allocations: 27.81 kB / 363.5 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.2341, allocations: 107.3 kB / 363.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.291e-05/0.2342, allocations: 63.98 kB / 363.7 MB, free: 5.387 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.0003097/0.2345, allocations: 220.2 kB / 363.9 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.2348, allocations: 413.5 kB / 364.3 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/0.2361, allocations: 1.017 MB / 365.3 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.2361, allocations: 12 kB / 365.3 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2361, allocations: 5 kB / 365.3 MB, free: 3.719 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2361, allocations: 3.984 kB / 365.3 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002308/0.2384, allocations: 2.078 MB / 367.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.168e-05/0.2384, allocations: 68 kB / 367.5 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.2387, allocations: 83.88 kB / 367.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.2387, allocations: 8.062 kB / 367.6 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.083e-05/0.2387, allocations: 39.92 kB / 367.6 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2387, allocations: 4.688 kB / 367.6 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2387, allocations: 0 / 367.6 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009723/0.2397, allocations: 1.082 MB / 368.7 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004499/0.2402, allocations: 439.4 kB / 369.1 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.2403, allocations: 15.75 kB / 369.1 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.2406, allocations: 16.73 kB / 369.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.2408, allocations: 63.92 kB / 369.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.2408, allocations: 40.02 kB / 369.3 MB, free: 15.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001479/0.2423, allocations: 1.735 MB / 371 MB, free: 13.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2423, allocations: 0 / 371 MB, free: 13.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009399/0.2432, allocations: 0.593 MB / 371.6 MB, free: 13.37 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.0008511/0.2441, allocations: 0.8309 MB / 372.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009572/0.245, allocations: 0.6187 MB / 373 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.245, allocations: 448 / 373 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.2453, allocations: 355.7 kB / 373.4 MB, free: 11.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.2468, allocations: 0.6351 MB / 374 MB, free: 10.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.251, allocations: 4.125 MB / 378.1 MB, free: 6.695 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.2512, allocations: 383.9 kB / 378.5 MB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006845/0.2519, allocations: 357.1 kB / 378.9 MB, free: 5.945 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.2521, allocations: 152.5 kB / 379 MB, free: 5.797 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2521, allocations: 0 / 379 MB, free: 5.797 MB / 330.7 MB Notification: Performance of Templates: time 0.04588/0.2979, allocations: 32.59 MB / 411.6 MB, free: 5.688 MB / 362.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 -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.6592710274271667]