Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001431/0.001431, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001545/0.001545, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9698/0.9698, allocations: 177.1 MB / 205 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.012e-05/2.164e-05, allocations: 2.312 kB / 273 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009919/0.009941, allocations: 14.06 MB / 287 MB, free: 3.465 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.142/0.1519, allocations: 19.78 MB / 306.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.1542, allocations: 132 kB / 306.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002925/0.1572, allocations: 1.145 MB / 308.1 MB, free: 9.699 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008281/0.1654, allocations: 2.42 MB / 310.5 MB, free: 8.199 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004668/0.1701, allocations: 1.451 MB / 311.9 MB, free: 7.152 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007265/0.1774, allocations: 6.904 MB / 318.8 MB, free: 3.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006079/0.178, allocations: 253.8 kB / 319.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.1797, allocations: 1.574 MB / 320.7 MB, free: 1.895 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008774/0.1806, allocations: 0.794 MB / 321.5 MB, free: 1.098 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002198/0.1808, allocations: 72 kB / 321.5 MB, free: 1.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003039/0.1839, allocations: 1.206 MB / 322.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.1841, allocations: 333.5 kB / 323.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008526/0.185, allocations: 0.7404 MB / 323.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.1882, allocations: 2.809 MB / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1882, allocations: 0 / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1882, allocations: 0 / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001114/0.1883, allocations: 0 / 326.6 MB, free: 11.93 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.003614/0.192, allocations: 3.918 MB / 330.5 MB, free: 7.945 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.192, allocations: 12.03 kB / 330.5 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003776/0.1924, allocations: 453.4 kB / 331 MB, free: 7.488 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002234/0.1946, allocations: 2.579 MB / 333.6 MB, free: 4.812 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.1946, allocations: 37 kB / 333.6 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.355e-05/0.1947, allocations: 59.94 kB / 333.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000734/0.1955, allocations: 0.5359 MB / 334.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1955, allocations: 0 / 334.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.1955, allocations: 27.92 kB / 334.2 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.1956, allocations: 16 kB / 334.2 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006206/0.1962, allocations: 490.4 kB / 334.7 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003556/0.1997, allocations: 2.855 MB / 337.6 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.2002, allocations: 329.9 kB / 337.9 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.2006, allocations: 421.8 kB / 338.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01605/0.2167, allocations: 15.22 MB / 353.5 MB, free: 384 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003611/0.217, allocations: 279.7 kB / 353.8 MB, free: 84 kB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.385e-06/0.217, allocations: 0 / 353.8 MB, free: 84 kB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.001068/0.2181, allocations: 0.866 MB / 354.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.2181, allocations: 71.34 kB / 354.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/0.2207, allocations: 3.169 MB / 357.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.2207, allocations: 33.7 kB / 357.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009752/0.2217, allocations: 1.666 MB / 359.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.2218, allocations: 178.6 kB / 359.8 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.222, allocations: 239.9 kB / 360 MB, free: 9.801 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.2221, allocations: 0.5121 MB / 360.5 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2223, allocations: 125.9 kB / 360.6 MB, free: 9.156 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004098/0.2227, allocations: 0.6557 MB / 361.3 MB, free: 8.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009172/0.2236, allocations: 0.8578 MB / 362.2 MB, free: 7.168 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.2237, allocations: 4 kB / 362.2 MB, free: 7.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001047/0.2247, allocations: 1.068 MB / 363.2 MB, free: 6.094 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.2247, allocations: 14.19 kB / 363.2 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-05/0.2248, allocations: 80 kB / 363.3 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.2248, allocations: 16.75 kB / 363.3 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.2252, allocations: 203.7 kB / 363.5 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.221e-05/0.2252, allocations: 36.3 kB / 363.6 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000529/0.2258, allocations: 103.3 kB / 363.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-05/0.2259, allocations: 64 kB / 363.7 MB, free: 5.59 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.0003239/0.2262, allocations: 218.6 kB / 364 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002862/0.2265, allocations: 417.5 kB / 364.4 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.2277, allocations: 1.014 MB / 365.4 MB, free: 3.941 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.2277, allocations: 11.36 kB / 365.4 MB, free: 3.934 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2278, allocations: 3.938 kB / 365.4 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2278, allocations: 4 kB / 365.4 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.2298, allocations: 2.078 MB / 367.5 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.166e-05/0.2298, allocations: 71.98 kB / 367.5 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.2301, allocations: 83.88 kB / 367.6 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.2301, allocations: 4 kB / 367.6 MB, free: 1.629 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.658e-05/0.2301, allocations: 32 kB / 367.7 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.2301, allocations: 8 kB / 367.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2301, allocations: 0 / 367.7 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.2312, allocations: 1.082 MB / 368.8 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005646/0.2318, allocations: 439.1 kB / 369.2 MB, free: 44 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/0.232, allocations: 15.92 kB / 369.2 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.2325, allocations: 23.98 kB / 369.2 MB, free: 4 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004066/0.2329, allocations: 55.94 kB / 369.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.13e-05/0.233, allocations: 39.98 kB / 369.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001873/0.2349, allocations: 1.735 MB / 371 MB, free: 14.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2349, allocations: 4.031 kB / 371.1 MB, free: 14.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001202/0.2361, allocations: 0.5852 MB / 371.6 MB, free: 13.59 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.001012/0.2371, allocations: 0.8354 MB / 372.5 MB, free: 12.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000856/0.2379, allocations: 0.621 MB / 373.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2379, allocations: 0.9375 kB / 373.1 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.2383, allocations: 351.7 kB / 373.4 MB, free: 11.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.2402, allocations: 0.6352 MB / 374.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/0.245, allocations: 4.14 MB / 378.2 MB, free: 6.879 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.2452, allocations: 383.9 kB / 378.6 MB, free: 6.484 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007218/0.246, allocations: 357.1 kB / 378.9 MB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.2462, allocations: 152.5 kB / 379.1 MB, free: 5.98 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.2462, allocations: 4 kB / 379.1 MB, free: 5.977 MB / 330.7 MB Notification: Performance of Templates: time 0.0468/0.293, allocations: 32.61 MB / 411.7 MB, free: 5.883 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.7987737827934325]