Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 109.3 kB / 18.45 MB, free: 4.625 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.001345/0.001345, allocations: 185.1 kB / 19.37 MB, free: 3.707 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.321/1.321, allocations: 222.9 MB / 243.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2021/0.2021, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.00123, allocations: 67.91 kB / 471.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.36, allocations: 60.82 MB / 0.5195 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.002651/0.3627, allocations: 1.723 MB / 0.5212 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001581/0.3629, allocations: 72.86 kB / 0.5213 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.467e-05/0.363, allocations: 1.281 kB / 0.5213 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.567e-05/0.3631, allocations: 19.75 kB / 0.5213 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.502e-05/0.3631, allocations: 22.41 kB / 0.5213 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.036e-05/0.3632, allocations: 22.36 kB / 0.5214 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.3634, allocations: 105.7 kB / 0.5215 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.3636, allocations: 50.58 kB / 0.5215 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.83e-05/0.3636, allocations: 39.39 kB / 0.5215 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.151e-05/0.3637, allocations: 48.72 kB / 0.5216 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.3637, allocations: 10.81 kB / 0.5216 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.23e-05/0.3638, allocations: 10.53 kB / 0.5216 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.837e-05/0.3638, allocations: 26.23 kB / 0.5216 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.549e-05/0.3639, allocations: 55.59 kB / 0.5217 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.364, allocations: 110.6 kB / 0.5218 GB, free: 2.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.364, allocations: 0 / 0.5218 GB, free: 2.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3641, allocations: 5.406 kB / 0.5218 GB, free: 2.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3641, allocations: 0 / 0.5218 GB, free: 2.098 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004087/0.3645, allocations: 404 kB / 0.5222 GB, free: 1.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3645, allocations: 9.625 kB / 0.5222 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.3646, allocations: 15.2 kB / 0.5222 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.856e-05/0.3646, allocations: 179.8 kB / 0.5224 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.3647, allocations: 10.17 kB / 0.5224 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.3647, allocations: 11.03 kB / 0.5224 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.3649, allocations: 130.5 kB / 0.5225 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3649, allocations: 1.5 kB / 0.5225 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3649, allocations: 11.94 kB / 0.5225 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.365, allocations: 3.906 kB / 0.5225 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.3651, allocations: 63.94 kB / 0.5226 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.3657, allocations: 0.7157 MB / 0.5233 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.845e-05/0.3658, allocations: 179.8 kB / 0.5235 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.3658, allocations: 80.14 kB / 0.5235 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.3659, allocations: 76.03 kB / 0.5236 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.3659, allocations: 107 kB / 0.5237 GB, free: 248 kB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.3659, allocations: 0 / 0.5237 GB, free: 248 kB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 6.64e-05/0.366, allocations: 37.66 kB / 0.5238 GB, free: 208 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.366, allocations: 128.4 kB / 0.5239 GB, free: 68 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.3661, allocations: 143.1 kB / 0.524 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.3662, allocations: 25.7 kB / 0.524 GB, free: 15.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.3663, allocations: 131.7 kB / 0.5242 GB, free: 15.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.85e-06/0.3663, allocations: 4.5 kB / 0.5242 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.3663, allocations: 19.17 kB / 0.5242 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3664, allocations: 322.8 kB / 0.5245 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.975e-05/0.3664, allocations: 12.89 kB / 0.5245 GB, free: 15.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-05/0.3665, allocations: 41.91 kB / 0.5245 GB, free: 15.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.983e-05/0.3666, allocations: 56.75 kB / 0.5246 GB, free: 15.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3666, allocations: 1.406 kB / 0.5246 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001436/0.3667, allocations: 74.44 kB / 0.5247 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3667, allocations: 5.281 kB / 0.5247 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3668, allocations: 2.969 kB / 0.5247 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3668, allocations: 5.375 kB / 0.5247 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.187e-05/0.3669, allocations: 14.73 kB / 0.5247 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3669, allocations: 6.062 kB / 0.5247 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.664e-05/0.3669, allocations: 7.641 kB / 0.5247 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.3669, allocations: 7.188 kB / 0.5247 GB, free: 15.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001013/0.367, allocations: 194 kB / 0.5249 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.657e-05/0.3671, allocations: 113.8 kB / 0.525 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.416e-05/0.3672, allocations: 116.9 kB / 0.5251 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.91e-05/0.3672, allocations: 178.1 kB / 0.5253 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.505e-05/0.3673, allocations: 182.3 kB / 0.5255 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.762e-05/0.3673, allocations: 186.2 kB / 0.5256 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.3676, allocations: 441.4 kB / 0.5261 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.458e-05/0.3676, allocations: 105.8 kB / 0.5262 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.014e-05/0.3677, allocations: 110.7 kB / 0.5263 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.308e-05/0.3677, allocations: 182.4 kB / 0.5264 GB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-05/0.3678, allocations: 181.4 kB / 0.5266 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.497e-05/0.3679, allocations: 182.1 kB / 0.5268 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.688e-05/0.3679, allocations: 178.4 kB / 0.527 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.3681, allocations: 319.3 kB / 0.5273 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.415e-05/0.3681, allocations: 186.4 kB / 0.5274 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/0.3682, allocations: 182.1 kB / 0.5276 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.3683, allocations: 106.8 kB / 0.5277 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.3684, allocations: 178.1 kB / 0.5279 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.3684, allocations: 109.6 kB / 0.528 GB, free: 11.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.835e-05/0.3685, allocations: 118.5 kB / 0.5281 GB, free: 11.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3685, allocations: 0 / 0.5281 GB, free: 11.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.3688, allocations: 13.66 kB / 0.5281 GB, free: 11.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0001017/0.3689, allocations: 168.5 kB / 0.5283 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.308e-05/0.3689, allocations: 20.91 kB / 0.5283 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.369, allocations: 5.094 kB / 0.5283 GB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.432e-06/0.369, allocations: 0 / 0.5283 GB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003615/0.3693, allocations: 462.8 kB / 0.5287 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.3697, allocations: 269.1 kB / 0.529 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.37, allocations: 0.7029 MB / 0.5297 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.267e-05/0.37, allocations: 9.688 kB / 0.5297 GB, free: 10.08 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.37, allocations: 0 / 0.5297 GB, free: 10.08 MB / 398.1 MB Notification: Performance of Templates: time 0.002523/0.3725, allocations: 0.8557 MB / 0.5305 GB, free: 10 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches