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.001321/0.001321, allocations: 73.33 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001515/0.001515, allocations: 158.2 kB / 24.5 MB, free: 3.715 MB / 14.72 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 1.419/1.419, allocations: 177.2 MB / 204.9 MB, free: 8.988 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001585/0.001585, allocations: 47.53 kB / 325.5 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.0891, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01428/0.1034, allocations: 12.4 MB / 391.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02367/0.127, allocations: 17.9 MB / 409.2 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.1285, allocations: 138.4 kB / 409.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.1312, allocations: 1.126 MB / 410.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005883/0.1371, allocations: 2.356 MB / 412.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003592/0.1407, allocations: 1.414 MB / 414.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009735/0.1504, allocations: 6.631 MB / 420.9 MB, free: 5.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004858/0.1509, allocations: 261.8 kB / 421.1 MB, free: 5.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.1524, allocations: 1.159 MB / 422.3 MB, free: 4.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001407/0.1538, allocations: 1.063 MB / 423.3 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001874/0.154, allocations: 76 kB / 423.4 MB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002809/0.1568, allocations: 1.206 MB / 424.6 MB, free: 1.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003379/0.1571, allocations: 325.7 kB / 424.9 MB, free: 1.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.1582, allocations: 1.009 MB / 425.9 MB, free: 396 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00438/0.1626, allocations: 3.827 MB / 429.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1626, allocations: 0 / 429.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1626, allocations: 4 kB / 429.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.744e-05/0.1626, allocations: 0 / 429.8 MB, free: 12.54 MB / 398.1 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.005326/0.1679, allocations: 3.734 MB / 433.5 MB, free: 8.746 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.168, allocations: 8.031 kB / 433.5 MB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004496/0.1684, allocations: 413.4 kB / 433.9 MB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0035/0.1719, allocations: 2.299 MB / 436.2 MB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.172, allocations: 33 kB / 436.2 MB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.1721, allocations: 52 kB / 436.3 MB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.1735, allocations: 0.7382 MB / 437 MB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.1735, allocations: 0 / 437 MB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.1736, allocations: 27.92 kB / 437.1 MB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.1736, allocations: 16 kB / 437.1 MB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.1753, allocations: 0.8202 MB / 437.9 MB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00522/0.1805, allocations: 2.75 MB / 440.6 MB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.1818, allocations: 0.5203 MB / 441.2 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.1828, allocations: 0.5701 MB / 441.7 MB, free: 340 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02576/0.2086, allocations: 13.72 MB / 455.5 MB, free: 2.223 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007995/0.2094, allocations: 358 kB / 455.8 MB, free: 1.863 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.2094, allocations: 0 / 455.8 MB, free: 1.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002345/0.2117, allocations: 1.112 MB / 456.9 MB, free: 0.7422 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.2118, allocations: 63.41 kB / 457 MB, free: 0.668 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/0.2155, allocations: 2.958 MB / 459.9 MB, free: 13.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.2155, allocations: 33.7 kB / 460 MB, free: 13.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.217, allocations: 1.495 MB / 461.5 MB, free: 12.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2172, allocations: 174.6 kB / 461.6 MB, free: 11.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.2175, allocations: 230.3 kB / 461.9 MB, free: 11.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2176, allocations: 341.9 kB / 462.2 MB, free: 11.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006228/0.2183, allocations: 241.9 kB / 462.4 MB, free: 11.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009221/0.2192, allocations: 0.5979 MB / 463 MB, free: 10.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.2208, allocations: 0.8945 MB / 463.9 MB, free: 9.336 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.2208, allocations: 4 kB / 463.9 MB, free: 9.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002174/0.223, allocations: 1.248 MB / 465.2 MB, free: 8.074 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.223, allocations: 15.98 kB / 465.2 MB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.2231, allocations: 80 kB / 465.3 MB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/0.2232, allocations: 16 kB / 465.3 MB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007617/0.2239, allocations: 212.2 kB / 465.5 MB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.377e-05/0.2239, allocations: 23.92 kB / 465.5 MB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008868/0.2248, allocations: 115.2 kB / 465.6 MB, free: 7.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/0.2249, allocations: 64 kB / 465.7 MB, free: 7.559 MB / 430.1 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.0006531/0.2256, allocations: 429.5 kB / 466.1 MB, free: 7.129 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.226, allocations: 409.4 kB / 466.5 MB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.2287, allocations: 1.187 MB / 467.7 MB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.2287, allocations: 4 kB / 467.7 MB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2287, allocations: 3.938 kB / 467.7 MB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.2287, allocations: 3.984 kB / 467.7 MB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003383/0.2321, allocations: 1.944 MB / 469.7 MB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001087/0.2322, allocations: 71.98 kB / 469.7 MB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.2327, allocations: 91.92 kB / 469.8 MB, free: 3.371 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.2327, allocations: 4 kB / 469.8 MB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.2328, allocations: 32 kB / 469.9 MB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.2328, allocations: 4 kB / 469.9 MB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2328, allocations: 7.984 kB / 469.9 MB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.2352, allocations: 1.316 MB / 471.2 MB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008165/0.236, allocations: 415.2 kB / 471.6 MB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.2362, allocations: 12 kB / 471.6 MB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006826/0.2369, allocations: 32.02 kB / 471.6 MB, free: 1.531 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.2371, allocations: 67.81 kB / 471.7 MB, free: 1.465 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.417e-05/0.2372, allocations: 43.92 kB / 471.7 MB, free: 1.422 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.1679/0.405, allocations: 1.899 MB / 473.6 MB, free: 87.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4051, allocations: 0.6875 kB / 473.6 MB, free: 87.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002269/0.4073, allocations: 0.5884 MB / 474.2 MB, free: 87.75 MB / 430.1 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.0009766/0.4083, allocations: 0.7827 MB / 475 MB, free: 87.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4099, allocations: 0.776 MB / 475.8 MB, free: 87.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.41, allocations: 1.375 kB / 475.8 MB, free: 87.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006994/0.4107, allocations: 426.3 kB / 476.2 MB, free: 87.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/0.4131, allocations: 0.5983 MB / 476.8 MB, free: 87.27 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005291/0.4184, allocations: 4.394 MB / 481.2 MB, free: 85.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.4195, allocations: 1.114 MB / 482.3 MB, free: 84.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009419/0.4204, allocations: 358.7 kB / 482.7 MB, free: 84.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.4207, allocations: 149.6 kB / 482.8 MB, free: 84.8 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4207, allocations: 1.156 kB / 482.8 MB, free: 84.8 MB / 430.1 MB Notification: Performance of Templates: time 0.04293/0.4636, allocations: 32.56 MB / 0.5033 GB, free: 58.52 MB / 430.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.525152015034109]