Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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.Magnetic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.V_m|reluctance.Phi|permeance.V_m|permeance.Phi",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents") translateModel(ModelicaTest.Magnetic.FluxTubes.VariableComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reluctance.V_m|reluctance.Phi|permeance.V_m|permeance.Phi",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 112.7 kB / 18.45 MB, free: 4.598 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.001386/0.001386, allocations: 181.2 kB / 19.38 MB, free: 3.684 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.284/1.284, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.1967/0.1967, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 59.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3527, allocations: 60.82 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.00267/0.3554, allocations: 1.728 MB / 0.5212 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001472/0.3556, allocations: 84.22 kB / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.411e-05/0.3556, allocations: 2.406 kB / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.105e-05/0.3557, allocations: 12.56 kB / 0.5213 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.712e-05/0.3558, allocations: 25.12 kB / 0.5213 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.08e-05/0.3558, allocations: 27.69 kB / 0.5214 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001267/0.356, allocations: 108.5 kB / 0.5215 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.3562, allocations: 55.14 kB / 0.5215 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.809e-05/0.3563, allocations: 41.77 kB / 0.5216 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.3563, allocations: 51.38 kB / 0.5216 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.3564, allocations: 11.06 kB / 0.5216 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.927e-05/0.3564, allocations: 12.12 kB / 0.5216 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.3564, allocations: 26.92 kB / 0.5217 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.908e-05/0.3565, allocations: 50.97 kB / 0.5217 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.3566, allocations: 114.8 kB / 0.5218 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3566, allocations: 0 / 0.5218 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3567, allocations: 0 / 0.5218 GB, free: 2.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3567, allocations: 0 / 0.5218 GB, free: 2.082 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005406/0.3572, allocations: 416.5 kB / 0.5222 GB, free: 1.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3572, allocations: 14.25 kB / 0.5222 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.632e-05/0.3573, allocations: 10.16 kB / 0.5222 GB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.006e-05/0.3574, allocations: 177.3 kB / 0.5224 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3574, allocations: 7.906 kB / 0.5224 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.3574, allocations: 10.94 kB / 0.5224 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003517/0.3578, allocations: 117.7 kB / 0.5225 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.3578, allocations: 192 / 0.5225 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.3578, allocations: 9.156 kB / 0.5225 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3578, allocations: 7.359 kB / 0.5226 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.3583, allocations: 107.7 kB / 0.5227 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.3591, allocations: 479.2 kB / 0.5231 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002435/0.3593, allocations: 89.08 kB / 0.5232 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.3596, allocations: 63.3 kB / 0.5233 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.3596, allocations: 1.312 kB / 0.5233 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.3596, allocations: 36.53 kB / 0.5233 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.3596, allocations: 3.938 kB / 0.5233 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007982/0.3604, allocations: 265.1 kB / 0.5236 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.3605, allocations: 56.06 kB / 0.5236 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.3605, allocations: 118.7 kB / 0.5237 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.3606, allocations: 27.14 kB / 0.5237 GB, free: 0.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.578e-05/0.3606, allocations: 112.7 kB / 0.5239 GB, free: 400 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.3606, allocations: 20.39 kB / 0.5239 GB, free: 384 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.3607, allocations: 18.7 kB / 0.5239 GB, free: 364 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.3607, allocations: 314.9 kB / 0.5242 GB, free: 44 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.3609, allocations: 42.17 kB / 0.5242 GB, free: 32 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3611, allocations: 65.39 kB / 0.5243 GB, free: 15.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/0.3614, allocations: 95.89 kB / 0.5244 GB, free: 15.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3614, allocations: 5.516 kB / 0.5244 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004348/0.3618, allocations: 146.4 kB / 0.5245 GB, free: 15.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3619, allocations: 10.84 kB / 0.5245 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3619, allocations: 0 / 0.5245 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000158/0.362, allocations: 23.91 kB / 0.5246 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3622, allocations: 21.56 kB / 0.5246 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.3632, allocations: 1.403 MB / 0.526 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.3633, allocations: 16.88 kB / 0.526 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.3634, allocations: 2.953 kB / 0.526 GB, free: 14.42 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.535e-05/0.3635, allocations: 114.2 kB / 0.5261 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.3635, allocations: 16.16 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.3635, allocations: 10.75 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.3635, allocations: 1.281 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3635, allocations: 0 / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3635, allocations: 1.859 kB / 0.5261 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007109/0.3643, allocations: 422.9 kB / 0.5265 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.3643, allocations: 1.844 kB / 0.5265 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.002e-05/0.3644, allocations: 26.06 kB / 0.5265 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.403e-05/0.3644, allocations: 19.02 kB / 0.5266 GB, free: 13.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.3645, allocations: 6.484 kB / 0.5266 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.3656, allocations: 1.406 MB / 0.5279 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3656, allocations: 1.594 kB / 0.5279 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005156/0.3661, allocations: 246.5 kB / 0.5282 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.3662, allocations: 89 kB / 0.5283 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.3662, allocations: 0.875 kB / 0.5283 GB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.3663, allocations: 16.62 kB / 0.5283 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.3664, allocations: 10.05 kB / 0.5283 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.3664, allocations: 1.656 kB / 0.5283 GB, free: 12.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.841e-05/0.3665, allocations: 96.58 kB / 0.5284 GB, free: 12.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3665, allocations: 1.25 kB / 0.5284 GB, free: 12.1 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000306/0.3668, allocations: 26.28 kB / 0.5284 GB, free: 12.09 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001036/0.3669, allocations: 93.64 kB / 0.5285 GB, free: 12 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.3674, allocations: 210.6 kB / 0.5287 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3674, allocations: 0 / 0.5287 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.3677, allocations: 165.2 kB / 0.5289 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.368, allocations: 8.156 kB / 0.5289 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/0.3685, allocations: 239.1 kB / 0.5291 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3689, allocations: 0.7 MB / 0.5298 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.3689, allocations: 9.719 kB / 0.5298 GB, free: 10.82 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3689, allocations: 1.188 kB / 0.5298 GB, free: 10.82 MB / 398.1 MB Notification: Performance of Templates: time 0.003381/0.3723, allocations: 1.605 MB / 0.5313 GB, free: 10.13 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & ./ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches