Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009134/0.0009134, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 145.2 kB / 25.6 MB, free: 8.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8867/0.8867, allocations: 173.4 MB / 202.3 MB, free: 8.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.293e-05, allocations: 2.312 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01259/0.01261, allocations: 13.68 MB / 282.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01814/0.03075, allocations: 19.37 MB / 302.3 MB, free: 8.598 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0015/0.03225, allocations: 138.5 kB / 302.4 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.03434, allocations: 1.137 MB / 303.5 MB, free: 7.312 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004839/0.03918, allocations: 2.436 MB / 306 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00282/0.042, allocations: 1.445 MB / 307.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006252/0.04825, allocations: 6.828 MB / 314.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004104/0.04866, allocations: 261.8 kB / 314.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.05106, allocations: 2.975 MB / 317.5 MB, free: 9.293 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007093/0.05177, allocations: 0.8292 MB / 318.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.05187, allocations: 72 kB / 318.4 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.05392, allocations: 1.202 MB / 319.6 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001949/0.05411, allocations: 333.6 kB / 319.9 MB, free: 6.859 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000552/0.05467, allocations: 0.7476 MB / 320.6 MB, free: 6.109 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002483/0.05715, allocations: 2.801 MB / 323.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.05715, allocations: 0 / 323.4 MB, free: 3.297 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.05715, allocations: 4 kB / 323.4 MB, free: 3.293 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.05718, allocations: 0 / 323.4 MB, free: 3.293 MB / 298.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.002804/0.05998, allocations: 3.975 MB / 327.4 MB, free: 15.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.06001, allocations: 8.031 kB / 327.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000584/0.0606, allocations: 453.4 kB / 327.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.06252, allocations: 2.513 MB / 330.4 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.06254, allocations: 36.98 kB / 330.4 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.491e-05/0.06261, allocations: 63.69 kB / 330.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.06313, allocations: 488.7 kB / 331 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.06314, allocations: 0 / 331 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.06318, allocations: 24 kB / 331 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.0632, allocations: 19.98 kB / 331 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.06364, allocations: 428.3 kB / 331.4 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002443/0.06608, allocations: 2.325 MB / 333.7 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.0664, allocations: 301.1 kB / 334 MB, free: 8.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.06672, allocations: 373.7 kB / 334.4 MB, free: 8.086 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1308/0.1976, allocations: 15.18 MB / 349.6 MB, free: 48.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.1978, allocations: 259.7 kB / 349.8 MB, free: 48.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.884e-06/0.1978, allocations: 0.8438 kB / 349.8 MB, free: 48.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0007211/0.1985, allocations: 0.8129 MB / 350.6 MB, free: 48.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.1986, allocations: 67.47 kB / 350.7 MB, free: 48.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/0.2003, allocations: 3.128 MB / 353.8 MB, free: 48.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.2003, allocations: 36.08 kB / 353.9 MB, free: 48.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/0.2011, allocations: 1.7 MB / 355.6 MB, free: 47.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.729e-05/0.2011, allocations: 176.7 kB / 355.8 MB, free: 47.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2013, allocations: 243.3 kB / 356 MB, free: 47.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/0.2013, allocations: 0.5069 MB / 356.5 MB, free: 47.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.2015, allocations: 111.2 kB / 356.6 MB, free: 47.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.2017, allocations: 0.6223 MB / 357.2 MB, free: 46.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.2021, allocations: 0.8204 MB / 358 MB, free: 46.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2021, allocations: 3.781 kB / 358.1 MB, free: 46.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000778/0.2029, allocations: 1.017 MB / 359.1 MB, free: 45.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.2029, allocations: 14.44 kB / 359.1 MB, free: 45.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.339e-05/0.203, allocations: 83.22 kB / 359.2 MB, free: 45.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.203, allocations: 18.34 kB / 359.2 MB, free: 45.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.2033, allocations: 200.4 kB / 359.4 MB, free: 45.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.2034, allocations: 22.83 kB / 359.4 MB, free: 45.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.2038, allocations: 105.1 kB / 359.5 MB, free: 45.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.088e-05/0.2039, allocations: 61.3 kB / 359.6 MB, free: 45.75 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.0002656/0.2041, allocations: 222.6 kB / 359.8 MB, free: 45.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000221/0.2044, allocations: 407.9 kB / 360.2 MB, free: 45.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.2054, allocations: 0.9903 MB / 361.2 MB, free: 45.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2054, allocations: 4.062 kB / 361.2 MB, free: 45.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.2054, allocations: 4.688 kB / 361.2 MB, free: 45.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2054, allocations: 4.688 kB / 361.2 MB, free: 45.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.2071, allocations: 2.121 MB / 363.3 MB, free: 44.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.996e-05/0.2071, allocations: 71.28 kB / 363.4 MB, free: 44.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.2073, allocations: 84.81 kB / 363.5 MB, free: 44.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.2073, allocations: 8.812 kB / 363.5 MB, free: 44.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.2074, allocations: 29.59 kB / 363.5 MB, free: 44.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2074, allocations: 6.656 kB / 363.5 MB, free: 44.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2074, allocations: 0 / 363.5 MB, free: 44.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006623/0.208, allocations: 1.036 MB / 364.5 MB, free: 44.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.2084, allocations: 434.1 kB / 365 MB, free: 44.17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.2085, allocations: 14 kB / 365 MB, free: 44.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.2088, allocations: 23.25 kB / 365 MB, free: 44.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/0.2089, allocations: 59.31 kB / 365.1 MB, free: 44.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.2089, allocations: 34.17 kB / 365.1 MB, free: 44.17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008111/0.2098, allocations: 1.637 MB / 366.7 MB, free: 43.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2098, allocations: 0 / 366.7 MB, free: 43.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007432/0.2105, allocations: 0.588 MB / 367.3 MB, free: 42.77 MB / 314.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.0007139/0.2112, allocations: 0.9198 MB / 368.2 MB, free: 42.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004302/0.2116, allocations: 0.5827 MB / 368.8 MB, free: 41.56 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.2116, allocations: 0 / 368.8 MB, free: 41.56 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.2119, allocations: 341.1 kB / 369.1 MB, free: 41.24 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.2131, allocations: 0.6402 MB / 369.8 MB, free: 40.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002928/0.216, allocations: 4.11 MB / 373.9 MB, free: 36.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.2162, allocations: 385.5 kB / 374.3 MB, free: 36.36 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005163/0.2167, allocations: 357.1 kB / 374.6 MB, free: 36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006815/0.2174, allocations: 0.701 MB / 375.3 MB, free: 35.3 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2174, allocations: 0 / 375.3 MB, free: 35.3 MB / 314.7 MB Notification: Performance of Templates: time 0.03961/0.257, allocations: 37.72 MB / 413 MB, free: 14.26 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4336816421709955]