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.0009878/0.0009879, allocations: 115 kB / 17.75 MB, free: 5.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.001087/0.001087, allocations: 191 kB / 18.68 MB, free: 4.395 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.269/1.269, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.1927/0.1927, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 55.91 kB / 470.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3713, allocations: 60.83 MB / 0.5188 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.002701/0.374, allocations: 1.712 MB / 0.5205 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001635/0.3742, allocations: 68.16 kB / 0.5206 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.202e-05/0.3743, allocations: 2.906 kB / 0.5206 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.722e-05/0.3743, allocations: 15.34 kB / 0.5206 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.612e-05/0.3744, allocations: 25.95 kB / 0.5206 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.126e-05/0.3745, allocations: 30.05 kB / 0.5206 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.3746, allocations: 102.4 kB / 0.5207 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.3748, allocations: 53.92 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.787e-05/0.3749, allocations: 44.59 kB / 0.5208 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.124e-05/0.375, allocations: 48.53 kB / 0.5209 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/0.375, allocations: 9.938 kB / 0.5209 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.375, allocations: 11.31 kB / 0.5209 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.3751, allocations: 25.86 kB / 0.5209 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.918e-05/0.3751, allocations: 47.44 kB / 0.521 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.3753, allocations: 122.5 kB / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3753, allocations: 0.7031 kB / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3753, allocations: 0 / 0.5211 GB, free: 2.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3753, allocations: 5.094 kB / 0.5211 GB, free: 2.074 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.0004828/0.3758, allocations: 391.9 kB / 0.5215 GB, free: 1.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.3759, allocations: 10.41 kB / 0.5215 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.3759, allocations: 13.78 kB / 0.5215 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.376, allocations: 180.8 kB / 0.5217 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.3761, allocations: 5.016 kB / 0.5217 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.3761, allocations: 11.81 kB / 0.5217 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.3764, allocations: 135.2 kB / 0.5218 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3764, allocations: 192 / 0.5218 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3764, allocations: 9.062 kB / 0.5218 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3764, allocations: 3.562 kB / 0.5218 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001303/0.3765, allocations: 67.17 kB / 0.5219 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000758/0.3773, allocations: 0.7253 MB / 0.5226 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.106e-05/0.3774, allocations: 170.2 kB / 0.5228 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.999e-05/0.3774, allocations: 85.11 kB / 0.5228 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.3774, allocations: 75.28 kB / 0.5229 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.3774, allocations: 111.3 kB / 0.523 GB, free: 228 kB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.173e-06/0.3775, allocations: 0 / 0.523 GB, free: 228 kB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.773e-05/0.3775, allocations: 37.59 kB / 0.523 GB, free: 188 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.3776, allocations: 128.7 kB / 0.5232 GB, free: 48 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.3777, allocations: 142.8 kB / 0.5233 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.3778, allocations: 25.7 kB / 0.5233 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.3779, allocations: 131.2 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-06/0.3779, allocations: 1 kB / 0.5235 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.3779, allocations: 22.88 kB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.378, allocations: 323.8 kB / 0.5238 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.044e-05/0.3781, allocations: 8.875 kB / 0.5238 GB, free: 15.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.113e-05/0.3781, allocations: 45.34 kB / 0.5238 GB, free: 15.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.311e-05/0.3782, allocations: 55.72 kB / 0.5239 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3782, allocations: 1.281 kB / 0.5239 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000159/0.3784, allocations: 74.41 kB / 0.524 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.3784, allocations: 10.16 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3784, allocations: 2.734 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.3784, allocations: 2.125 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.859e-05/0.3785, allocations: 9.469 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3785, allocations: 2.375 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.427e-05/0.3786, allocations: 3.609 kB / 0.524 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3786, allocations: 15.88 kB / 0.524 GB, free: 15.25 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.0001069/0.3787, allocations: 198.4 kB / 0.5242 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.56e-05/0.3788, allocations: 113 kB / 0.5243 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.255e-05/0.3788, allocations: 109.2 kB / 0.5244 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001233/0.379, allocations: 186.2 kB / 0.5246 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000129/0.3791, allocations: 177.5 kB / 0.5248 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000141/0.3792, allocations: 186 kB / 0.5249 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000273/0.3795, allocations: 441 kB / 0.5254 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.155e-05/0.3796, allocations: 102.8 kB / 0.5255 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.3796, allocations: 106.9 kB / 0.5256 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.459e-05/0.3797, allocations: 182.2 kB / 0.5257 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.771e-05/0.3798, allocations: 186.1 kB / 0.5259 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.263e-05/0.3798, allocations: 177 kB / 0.5261 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.342e-05/0.3799, allocations: 182.1 kB / 0.5262 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.3801, allocations: 316.4 kB / 0.5266 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.229e-05/0.3802, allocations: 189.2 kB / 0.5267 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.766e-05/0.3802, allocations: 179 kB / 0.5269 GB, free: 12.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.113e-05/0.3803, allocations: 101.7 kB / 0.527 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.3804, allocations: 190.5 kB / 0.5272 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.3805, allocations: 103.7 kB / 0.5273 GB, free: 11.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.3805, allocations: 112.5 kB / 0.5274 GB, free: 11.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3806, allocations: 3.938 kB / 0.5274 GB, free: 11.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000277/0.3808, allocations: 17.06 kB / 0.5274 GB, free: 11.65 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.000162/0.381, allocations: 170.7 kB / 0.5276 GB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.475e-05/0.3811, allocations: 24.45 kB / 0.5276 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3811, allocations: 0 / 0.5276 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.716e-06/0.3811, allocations: 5.438 kB / 0.5276 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.3815, allocations: 457 kB / 0.528 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004085/0.3819, allocations: 247.8 kB / 0.5283 GB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3822, allocations: 0.6975 MB / 0.529 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.69e-05/0.3823, allocations: 3.156 kB / 0.529 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.3823, allocations: 10.31 kB / 0.529 GB, free: 10.1 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3823, allocations: 0 / 0.529 GB, free: 10.1 MB / 398.1 MB Notification: Performance of Templates: time 0.002628/0.3849, allocations: 403.6 kB / 0.5293 GB, free: 10.03 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","/var/lib/jenkins/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