Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001042, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001009/0.001009, allocations: 190.9 kB / 18.62 MB, free: 4.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 1.374/1.374, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 51.44 kB / 302 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.09028, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01504/0.1054, allocations: 15.31 MB / 366.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1962/0.3016, allocations: 20.74 MB / 387.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003122/0.3047, allocations: 90.34 kB / 387.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00497/0.3097, allocations: 1.264 MB / 388.9 MB, free: 6.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01317/0.323, allocations: 2.343 MB / 391.2 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008542/0.3315, allocations: 1.44 MB / 392.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01209/0.3436, allocations: 6.604 MB / 399.3 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007445/0.3444, allocations: 479.2 kB / 399.7 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.3461, allocations: 1.116 MB / 400.9 MB, free: 0.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/0.3478, allocations: 1.139 MB / 402 MB, free: 172 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002822/0.3481, allocations: 74.38 kB / 402.1 MB, free: 172 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004825/0.3529, allocations: 1.48 MB / 403.5 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.3533, allocations: 334.5 kB / 403.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001736/0.355, allocations: 1.433 MB / 405.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004577/0.3596, allocations: 3.979 MB / 409.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3596, allocations: 0 / 409.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3596, allocations: 0 / 409.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.3597, allocations: 0 / 409.3 MB, free: 10.46 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.004969/0.3647, allocations: 3.823 MB / 413.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.3647, allocations: 8.031 kB / 413.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.3651, allocations: 410.9 kB / 413.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003354/0.3685, allocations: 2.467 MB / 416 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.3685, allocations: 40.98 kB / 416 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3687, allocations: 59.83 kB / 416.1 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.3699, allocations: 0.7304 MB / 416.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.37, allocations: 0 / 416.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-05/0.37, allocations: 20 kB / 416.8 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.3701, allocations: 23.98 kB / 416.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.3715, allocations: 0.8199 MB / 417.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004777/0.3763, allocations: 3.09 MB / 420.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.3775, allocations: 0.579 MB / 421.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009261/0.3784, allocations: 0.6477 MB / 422 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02937/0.4078, allocations: 30.13 MB / 452.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007226/0.4085, allocations: 373.3 kB / 452.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.395e-06/0.4085, allocations: 0 / 452.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002116/0.4107, allocations: 1.105 MB / 453.6 MB, free: 9.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4107, allocations: 59.41 kB / 453.7 MB, free: 9.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003475/0.4142, allocations: 3.09 MB / 456.7 MB, free: 6.613 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.4143, allocations: 29.7 kB / 456.8 MB, free: 6.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.4155, allocations: 1.58 MB / 458.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.4157, allocations: 165.6 kB / 458.5 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.416, allocations: 230.1 kB / 458.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4161, allocations: 341.9 kB / 459.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005559/0.4167, allocations: 245.8 kB / 459.3 MB, free: 4.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007585/0.4174, allocations: 0.5981 MB / 459.9 MB, free: 3.238 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.4188, allocations: 0.9013 MB / 460.8 MB, free: 2.164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.4188, allocations: 4 kB / 460.8 MB, free: 2.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001977/0.4208, allocations: 1.248 MB / 462.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.4208, allocations: 12 kB / 462.1 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.4209, allocations: 87.92 kB / 462.2 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.4209, allocations: 16 kB / 462.2 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.4216, allocations: 196.4 kB / 462.4 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.4216, allocations: 27.86 kB / 462.4 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009241/0.4226, allocations: 107.1 kB / 462.5 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.4227, allocations: 71.98 kB / 462.6 MB, free: 408 kB / 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.0006423/0.4233, allocations: 454.2 kB / 463 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.4237, allocations: 403.1 kB / 463.4 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.4261, allocations: 1.213 MB / 464.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.4261, allocations: 4 kB / 464.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4261, allocations: 3.938 kB / 464.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4261, allocations: 0 / 464.6 MB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/0.4293, allocations: 2.151 MB / 466.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.602e-05/0.4294, allocations: 68 kB / 466.8 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/0.4299, allocations: 93.55 kB / 466.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.4299, allocations: 4 kB / 466.9 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.636e-05/0.43, allocations: 31.98 kB / 467 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.43, allocations: 0 / 467 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.43, allocations: 4 kB / 467 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.4321, allocations: 1.329 MB / 468.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008032/0.4329, allocations: 488 kB / 468.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/0.4332, allocations: 12 kB / 468.8 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/0.4339, allocations: 31.89 kB / 468.8 MB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.434, allocations: 64.02 kB / 468.9 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.224e-05/0.4341, allocations: 39.98 kB / 468.9 MB, free: 9.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002386/0.4365, allocations: 2.007 MB / 470.9 MB, free: 7.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4365, allocations: 0 / 470.9 MB, free: 7.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00118/0.4377, allocations: 0.5895 MB / 471.5 MB, free: 7.305 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.0009785/0.4387, allocations: 0.78 MB / 472.3 MB, free: 6.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.4401, allocations: 0.8215 MB / 473.1 MB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4401, allocations: 0 / 473.1 MB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007101/0.4409, allocations: 439 kB / 473.6 MB, free: 5.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.4432, allocations: 0.6329 MB / 474.2 MB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006004/0.4492, allocations: 4.481 MB / 478.7 MB, free: 64 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.4503, allocations: 1.714 MB / 480.4 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009959/0.4513, allocations: 361.3 kB / 480.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.4515, allocations: 147.4 kB / 480.9 MB, free: 13.82 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4515, allocations: 0 / 480.9 MB, free: 13.82 MB / 398.1 MB Notification: Performance of Templates: time 0.05117/0.5027, allocations: 31.91 MB / 0.5008 GB, free: 14.25 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches