Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.flange.f|pmActuator.flange.f|pmActuator.coil.Phi|pmActuator.coil.L_stat",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007961/0.0007962, allocations: 91.17 kB / 17.31 MB, free: 6.535 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.0008415/0.0008415, allocations: 178.3 kB / 18.21 MB, free: 5.68 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.147/1.147, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.0002258, allocations: 15.94 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0729/0.07314, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.00535/0.07851, allocations: 5.928 MB / 358.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003016/0.08155, allocations: 2.131 MB / 360.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005765/0.08215, allocations: 19.94 kB / 360.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006468/0.08281, allocations: 318.5 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009287/0.08375, allocations: 421.4 kB / 361.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.08445, allocations: 418.7 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.08552, allocations: 1.421 MB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000491/0.08602, allocations: 463.3 kB / 363.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003684/0.0864, allocations: 462 kB / 364 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005022/0.08691, allocations: 0.5716 MB / 364.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.042e-05/0.08701, allocations: 60 kB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.08717, allocations: 83.98 kB / 364.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.08734, allocations: 219 kB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003905/0.08774, allocations: 0.5806 MB / 365.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009913/0.08874, allocations: 1.519 MB / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.08875, allocations: 0 / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08876, allocations: 4 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.08877, allocations: 0 / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002264/0.09104, allocations: 1.379 MB / 368.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.09107, allocations: 8.031 kB / 368.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.09124, allocations: 127.4 kB / 368.6 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008818/0.09213, allocations: 0.7084 MB / 369.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.09224, allocations: 74.56 kB / 369.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.09238, allocations: 103.8 kB / 369.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.09409, allocations: 1.04 MB / 370.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.09413, allocations: 4 kB / 370.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.09421, allocations: 43.94 kB / 370.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.09423, allocations: 20 kB / 370.6 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.09611, allocations: 0.9538 MB / 371.5 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1344/0.2306, allocations: 3.676 MB / 375.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002946/0.2335, allocations: 1.1 MB / 376.3 MB, free: 22.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007235/0.2343, allocations: 396.9 kB / 376.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.2343, allocations: 9.359 kB / 376.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.2344, allocations: 45.62 kB / 376.7 MB, free: 22.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.615e-06/0.2344, allocations: 1.375 kB / 376.7 MB, free: 22.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004454/0.2388, allocations: 1.955 MB / 378.7 MB, free: 21.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.2389, allocations: 87.77 kB / 378.8 MB, free: 21.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.2401, allocations: 0.9874 MB / 379.8 MB, free: 20.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.2401, allocations: 40.5 kB / 379.8 MB, free: 20.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.2404, allocations: 0.5188 MB / 380.3 MB, free: 20.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.2405, allocations: 235.5 kB / 380.6 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.446e-05/0.2406, allocations: 73.41 kB / 380.6 MB, free: 20.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.572e-05/0.2407, allocations: 344.2 kB / 381 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.2416, allocations: 379.4 kB / 381.3 MB, free: 19.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009134/0.2425, allocations: 0.5608 MB / 381.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.2441, allocations: 0.9069 MB / 382.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2441, allocations: 3.531 kB / 382.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00214/0.2463, allocations: 1.09 MB / 383.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2463, allocations: 7.344 kB / 383.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.2463, allocations: 6.297 kB / 383.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.2464, allocations: 14.16 kB / 383.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.2475, allocations: 317.8 kB / 384.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.855e-05/0.2475, allocations: 9.844 kB / 384.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/0.2483, allocations: 101.5 kB / 384.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/0.2483, allocations: 36.45 kB / 384.4 MB, free: 18.6 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0003169/0.2487, allocations: 289.6 kB / 384.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.2488, allocations: 99.75 kB / 384.8 MB, free: 18.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008871/0.2497, allocations: 420.8 kB / 385.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.2497, allocations: 7.781 kB / 385.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.2497, allocations: 0 / 385.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.2497, allocations: 12.11 kB / 385.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003297/0.253, allocations: 2.351 MB / 387.5 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.2531, allocations: 6.562 kB / 387.5 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.2539, allocations: 244.1 kB / 387.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.2539, allocations: 9.156 kB / 387.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.2539, allocations: 20.38 kB / 387.8 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.297e-06/0.2539, allocations: 16.83 kB / 387.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/0.2539, allocations: 12.14 kB / 387.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.2553, allocations: 1.071 MB / 388.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.2555, allocations: 189.8 kB / 389.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.928e-05/0.2556, allocations: 21.8 kB / 389.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005619/0.2561, allocations: 62.14 kB / 389.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.2562, allocations: 66.09 kB / 389.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.2563, allocations: 28.73 kB / 389.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006361/0.2569, allocations: 0.6862 MB / 390 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2569, allocations: 0 / 390 MB, free: 15.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006452/0.2576, allocations: 203.8 kB / 390.2 MB, free: 15.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (67): * Single equations (assignments): 67 * 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.0006923/0.2583, allocations: 396.3 kB / 390.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001533/0.2598, allocations: 0.8087 MB / 391.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2598, allocations: 1.375 kB / 391.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006987/0.2605, allocations: 389.3 kB / 391.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.2622, allocations: 273 kB / 392 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002344/0.2646, allocations: 2.429 MB / 394.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.2649, allocations: 1.017 MB / 395.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/0.2652, allocations: 98.77 kB / 395.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2652, allocations: 4 kB / 395.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of Templates: time 0.01103/0.2762, allocations: 12.75 MB / 408.3 MB, free: 15.79 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches