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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008147/0.0008148, allocations: 178.1 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.159/1.159, allocations: 223.3 MB / 241 MB, free: 10.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007779/0.0007779, allocations: 88.2 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002159/0.000216, allocations: 7.938 kB / 351.8 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1765, allocations: 50.41 MB / 402.2 MB, free: 32.53 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.007405/0.1839, allocations: 13.56 MB / 415.8 MB, free: 18.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01442/0.1984, allocations: 18.93 MB / 434.7 MB, free: 15.97 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.1999, allocations: 27.81 kB / 434.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.2021, allocations: 0.9798 MB / 435.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005031/0.2072, allocations: 1.887 MB / 437.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.2106, allocations: 1.112 MB / 438.7 MB, free: 11.94 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008121/0.2188, allocations: 6.18 MB / 444.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006679/0.2194, allocations: 429 kB / 445.3 MB, free: 5.281 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.2206, allocations: 0.9872 MB / 446.3 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009569/0.2216, allocations: 1.044 MB / 447.3 MB, free: 3.238 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.2217, allocations: 40 kB / 447.4 MB, free: 3.199 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003123/0.2249, allocations: 1.338 MB / 448.7 MB, free: 1.859 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.2251, allocations: 281.8 kB / 449 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006357/0.2258, allocations: 0.6481 MB / 449.6 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002285/0.228, allocations: 2.862 MB / 452.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.2281, allocations: 4 kB / 452.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2281, allocations: 3.938 kB / 452.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.275e-05/0.2281, allocations: 0 / 452.5 MB, free: 14.05 MB / 330.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.004185/0.2323, allocations: 3.381 MB / 455.9 MB, free: 10.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.2323, allocations: 8.031 kB / 455.9 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003519/0.2327, allocations: 423 kB / 456.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.2356, allocations: 2.296 MB / 458.6 MB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.2357, allocations: 37 kB / 458.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.2358, allocations: 59.84 kB / 458.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.2371, allocations: 0.7421 MB / 459.4 MB, free: 6.957 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2371, allocations: 3.938 kB / 459.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.2372, allocations: 23.98 kB / 459.5 MB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.2372, allocations: 27.95 kB / 459.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.2387, allocations: 0.8593 MB / 460.3 MB, free: 6.039 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004362/0.243, allocations: 3.118 MB / 463.5 MB, free: 2.836 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.2442, allocations: 0.622 MB / 464.1 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009213/0.2451, allocations: 0.6767 MB / 464.8 MB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02454/0.2697, allocations: 30.16 MB / 494.9 MB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007139/0.2704, allocations: 385.5 kB / 495.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.2704, allocations: 0 / 495.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002052/0.2725, allocations: 1.171 MB / 496.5 MB, free: 13.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.2725, allocations: 63.39 kB / 496.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/0.2756, allocations: 3.044 MB / 499.6 MB, free: 10.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.2757, allocations: 33.7 kB / 499.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.2768, allocations: 1.576 MB / 0.4894 GB, free: 8.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.2769, allocations: 169.7 kB / 0.4896 GB, free: 8.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.277, allocations: 20 kB / 0.4896 GB, free: 8.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.683e-05/0.2771, allocations: 341.9 kB / 0.4899 GB, free: 8.434 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005551/0.2776, allocations: 261.9 kB / 0.4902 GB, free: 8.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007169/0.2784, allocations: 0.6215 MB / 0.4908 GB, free: 7.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.279, allocations: 336.5 kB / 0.4911 GB, free: 7.055 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.279, allocations: 4 kB / 0.4911 GB, free: 7.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001871/0.2809, allocations: 1.284 MB / 0.4924 GB, free: 5.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2809, allocations: 12 kB / 0.4924 GB, free: 5.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.84e-05/0.281, allocations: 83.98 kB / 0.4925 GB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.2811, allocations: 16 kB / 0.4925 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/0.2818, allocations: 219.8 kB / 0.4927 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.2818, allocations: 23.92 kB / 0.4927 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008622/0.2827, allocations: 115 kB / 0.4928 GB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.063e-05/0.2828, allocations: 68 kB / 0.4929 GB, free: 5.234 MB / 378.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006585/0.2835, allocations: 457.4 kB / 0.4933 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.2838, allocations: 395.2 kB / 0.4937 GB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.2864, allocations: 1.261 MB / 0.4949 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2865, allocations: 7.938 kB / 0.4949 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2865, allocations: 4 kB / 0.495 GB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2865, allocations: 3.984 kB / 0.495 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.2894, allocations: 2.189 MB / 0.4971 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.979e-05/0.2895, allocations: 68 kB / 0.4972 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.29, allocations: 107.9 kB / 0.4973 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.29, allocations: 0 / 0.4973 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.29, allocations: 31.98 kB / 0.4973 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.29, allocations: 4 kB / 0.4973 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2901, allocations: 0 / 0.4973 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1692/0.4593, allocations: 1.373 MB / 0.4986 GB, free: 100.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007595/0.4601, allocations: 492.2 kB / 0.4991 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/0.4603, allocations: 15.52 kB / 0.4991 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006823/0.461, allocations: 39.84 kB / 0.4992 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.4612, allocations: 64.81 kB / 0.4992 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.962e-05/0.4612, allocations: 38.33 kB / 0.4993 GB, free: 100.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002178/0.4634, allocations: 1.971 MB / 0.5012 GB, free: 99.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4634, allocations: 1.75 kB / 0.5012 GB, free: 99.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001012/0.4645, allocations: 0.5933 MB / 0.5018 GB, free: 99.67 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007506/0.4652, allocations: 0.742 MB / 0.5025 GB, free: 99.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.4666, allocations: 0.8492 MB / 0.5033 GB, free: 99.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4666, allocations: 0.8125 kB / 0.5033 GB, free: 99.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000627/0.4672, allocations: 471.5 kB / 0.5038 GB, free: 99.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/0.4694, allocations: 0.6104 MB / 0.5044 GB, free: 98.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005044/0.4744, allocations: 5.185 MB / 0.5094 GB, free: 96.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007295/0.4752, allocations: 1.709 MB / 0.5111 GB, free: 95.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.4754, allocations: 161.9 kB / 0.5113 GB, free: 95.05 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4754, allocations: 0 / 0.5113 GB, free: 95.05 MB / 378.7 MB Notification: Performance of Templates: time 0.03732/0.5127, allocations: 38.11 MB / 0.5485 GB, free: 57.36 MB / 378.7 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 -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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches