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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 109.4 kB / 17.17 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002396/0.002396, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.217/2.217, allocations: 222.9 MB / 241.8 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 51.17 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1601, allocations: 49.44 MB / 350 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02375/0.1839, allocations: 14.58 MB / 364.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3059/0.4899, allocations: 20.87 MB / 385.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004254/0.4942, allocations: 31.31 kB / 385.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005255/0.4996, allocations: 1.08 MB / 386.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.5112, allocations: 1.915 MB / 388.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01338/0.5246, allocations: 1.21 MB / 389.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02365/0.5484, allocations: 6.358 MB / 396.1 MB, free: 3.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.5503, allocations: 434.5 kB / 396.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003884/0.5542, allocations: 1.053 MB / 397.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004017/0.5583, allocations: 1.096 MB / 398.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006866/0.559, allocations: 50.62 kB / 398.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01097/0.57, allocations: 1.452 MB / 400.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.5711, allocations: 305.9 kB / 400.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004148/0.5753, allocations: 1.348 MB / 401.8 MB, free: 452 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004534/0.5798, allocations: 2.749 MB / 404.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5799, allocations: 4 kB / 404.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5799, allocations: 0 / 404.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.58, allocations: 0 / 404.6 MB, free: 14.52 MB / 318.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.009738/0.5897, allocations: 3.684 MB / 408.3 MB, free: 10.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.5898, allocations: 8.031 kB / 408.3 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009816/0.5908, allocations: 395.2 kB / 408.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004989/0.5958, allocations: 2.433 MB / 411.1 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.5959, allocations: 33 kB / 411.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.5961, allocations: 63.89 kB / 411.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.5977, allocations: 0.7303 MB / 411.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.5978, allocations: 0 / 411.9 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.5978, allocations: 20 kB / 411.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/0.5979, allocations: 23.98 kB / 411.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.5995, allocations: 0.8163 MB / 412.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006616/0.6061, allocations: 3.06 MB / 415.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.6075, allocations: 0.5764 MB / 416.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.6087, allocations: 0.6449 MB / 417 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05176/0.6605, allocations: 30.11 MB / 447.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/0.662, allocations: 373.3 kB / 447.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 5.811e-06/0.662, allocations: 0 / 447.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.004538/0.6666, allocations: 1.089 MB / 448.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.6667, allocations: 59.41 kB / 448.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006516/0.6732, allocations: 2.939 MB / 451.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.6734, allocations: 29.7 kB / 451.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/0.6753, allocations: 1.497 MB / 453.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.6756, allocations: 165.7 kB / 453.3 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003561/0.676, allocations: 226.1 kB / 453.5 MB, free: 9.223 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.6761, allocations: 337.9 kB / 453.9 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006545/0.6768, allocations: 241.9 kB / 454.1 MB, free: 8.652 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008483/0.6776, allocations: 0.6059 MB / 454.7 MB, free: 7.875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.6792, allocations: 0.8896 MB / 455.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.6792, allocations: 4 kB / 455.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003447/0.6827, allocations: 1.233 MB / 456.8 MB, free: 5.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.6827, allocations: 15.94 kB / 456.8 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/0.6829, allocations: 83.81 kB / 456.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.159e-05/0.683, allocations: 20.69 kB / 456.9 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.6842, allocations: 207.6 kB / 457.1 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.933e-05/0.6842, allocations: 23.92 kB / 457.2 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00256/0.6868, allocations: 103.1 kB / 457.3 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.687, allocations: 64 kB / 457.3 MB, free: 5.066 MB / 366.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.001444/0.6885, allocations: 437.5 kB / 457.8 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/0.6895, allocations: 383.3 kB / 458.1 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005376/0.6949, allocations: 1.193 MB / 459.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.695, allocations: 11.97 kB / 459.3 MB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.695, allocations: 3.938 kB / 459.3 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.695, allocations: 4 kB / 459.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/0.7016, allocations: 2.1 MB / 461.4 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001565/0.7018, allocations: 68 kB / 461.5 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008462/0.7027, allocations: 91.91 kB / 461.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.34e-05/0.7027, allocations: 4 kB / 461.6 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.7029, allocations: 28 kB / 461.6 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.7029, allocations: 3.938 kB / 461.6 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.7029, allocations: 4.062 kB / 461.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004769/0.7077, allocations: 1.289 MB / 462.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/0.7096, allocations: 480.1 kB / 463.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007066/0.7104, allocations: 15.98 kB / 463.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.7117, allocations: 27.97 kB / 463.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002652/0.712, allocations: 67.94 kB / 463.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.7121, allocations: 36 kB / 463.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005581/0.7177, allocations: 1.911 MB / 465.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7177, allocations: 0 / 465.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003346/0.7211, allocations: 0.5816 MB / 466 MB, free: 12.2 MB / 382.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.001952/0.7231, allocations: 0.7772 MB / 466.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.7261, allocations: 0.8019 MB / 467.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.7261, allocations: 4 kB / 467.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.7275, allocations: 443.4 kB / 468 MB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005923/0.7335, allocations: 0.584 MB / 468.6 MB, free: 9.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.7453, allocations: 5.223 MB / 473.9 MB, free: 4.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.7467, allocations: 1.665 MB / 475.5 MB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000592/0.7474, allocations: 151.4 kB / 475.7 MB, free: 2.434 MB / 382.1 MB Notification: Performance of SimCode: time 2.415e-06/0.7474, allocations: 0 / 475.7 MB, free: 2.434 MB / 382.1 MB Notification: Performance of Templates: time 0.09784/0.8452, allocations: 37.33 MB / 0.501 GB, free: 13.25 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches