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.001081/0.001081, allocations: 110.2 kB / 16.51 MB, free: 6.707 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.001007/0.001007, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.287/1.287, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009292/0.0009292, allocations: 52.3 kB / 300 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.08294, allocations: 49.44 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.006725/0.0897, allocations: 6.403 MB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00326/0.09298, allocations: 2.15 MB / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006688/0.09366, allocations: 19.94 kB / 358 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008855/0.09456, allocations: 314.6 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.09578, allocations: 429.4 kB / 358.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008726/0.09667, allocations: 399.5 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.09819, allocations: 1.436 MB / 360.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005444/0.09875, allocations: 443.4 kB / 361 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004632/0.09922, allocations: 498 kB / 361.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005677/0.0998, allocations: 0.6107 MB / 362.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.09993, allocations: 76 kB / 362.1 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.1002, allocations: 104 kB / 362.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.1004, allocations: 243 kB / 362.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.1008, allocations: 0.5829 MB / 363.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.1022, allocations: 1.849 MB / 364.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1022, allocations: 0 / 364.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1022, allocations: 4 kB / 364.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1022, allocations: 0 / 364.9 MB, free: 5.035 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.002858/0.1051, allocations: 1.539 MB / 366.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1051, allocations: 12.03 kB / 366.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.1053, allocations: 127.4 kB / 366.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1063, allocations: 0.7006 MB / 367.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.1064, allocations: 78.56 kB / 367.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.1066, allocations: 95.94 kB / 367.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/0.1085, allocations: 1.013 MB / 368.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.1085, allocations: 11.89 kB / 368.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.165e-05/0.1086, allocations: 43.94 kB / 368.5 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/0.1087, allocations: 24 kB / 368.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.1107, allocations: 0.8874 MB / 369.4 MB, free: 408 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1465/0.2572, allocations: 3.64 MB / 373.1 MB, free: 23.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.2603, allocations: 0.8945 MB / 374 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007756/0.2611, allocations: 378.4 kB / 374.3 MB, free: 22.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.593e-05/0.2612, allocations: 8.312 kB / 374.3 MB, free: 22.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.2612, allocations: 42.55 kB / 374.4 MB, free: 22.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.225e-06/0.2612, allocations: 0 / 374.4 MB, free: 22.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004522/0.2658, allocations: 1.786 MB / 376.2 MB, free: 22.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.2658, allocations: 83.98 kB / 376.3 MB, free: 21.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.2669, allocations: 0.9762 MB / 377.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.267, allocations: 35.95 kB / 377.3 MB, free: 21.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/0.2673, allocations: 0.5231 MB / 377.8 MB, free: 21.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.2674, allocations: 233.6 kB / 378 MB, free: 20.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.2676, allocations: 157.1 kB / 378.2 MB, free: 20.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.933e-05/0.2677, allocations: 348.5 kB / 378.5 MB, free: 20.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008842/0.2686, allocations: 340.2 kB / 378.8 MB, free: 20.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009355/0.2696, allocations: 0.5237 MB / 379.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.2712, allocations: 0.8267 MB / 380.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.2712, allocations: 1.438 kB / 380.2 MB, free: 19.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002199/0.2734, allocations: 1.021 MB / 381.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.2734, allocations: 8.625 kB / 381.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2735, allocations: 4.719 kB / 381.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.2735, allocations: 9.469 kB / 381.2 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.2748, allocations: 289 kB / 381.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.128e-05/0.2748, allocations: 13.67 kB / 381.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008258/0.2756, allocations: 73.66 kB / 381.6 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.414e-05/0.2757, allocations: 36.88 kB / 381.6 MB, free: 19.15 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.000338/0.276, allocations: 282.1 kB / 381.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.2762, allocations: 103.2 kB / 382 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009291/0.2771, allocations: 383.6 kB / 382.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.2771, allocations: 11.25 kB / 382.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.2772, allocations: 1.125 kB / 382.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.2772, allocations: 8.422 kB / 382.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.2809, allocations: 2.3 MB / 384.7 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.281, allocations: 15.08 kB / 384.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008401/0.2818, allocations: 210.8 kB / 384.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.2818, allocations: 10.06 kB / 384.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.381e-05/0.2819, allocations: 22.59 kB / 385 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.2819, allocations: 14.94 kB / 385 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.2819, allocations: 12.22 kB / 385 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001442/0.2834, allocations: 1.025 MB / 386 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.2835, allocations: 192.8 kB / 386.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.2837, allocations: 18.69 kB / 386.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/0.2843, allocations: 49.69 kB / 386.3 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.2844, allocations: 71.64 kB / 386.3 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.2845, allocations: 28.91 kB / 386.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007957/0.2853, allocations: 0.6804 MB / 387 MB, free: 16.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2853, allocations: 0 / 387 MB, free: 16.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000851/0.2861, allocations: 210.5 kB / 387.3 MB, free: 16.04 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.0007985/0.2869, allocations: 384.3 kB / 387.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.2886, allocations: 0.7557 MB / 388.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.2886, allocations: 1.188 kB / 388.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.2894, allocations: 373.3 kB / 388.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.2905, allocations: 189.8 kB / 388.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/0.2931, allocations: 2.321 MB / 391.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.2935, allocations: 1.019 MB / 392.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005302/0.294, allocations: 127.1 kB / 392.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.2943, allocations: 74.5 kB / 392.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2943, allocations: 0 / 392.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of Templates: time 0.01431/0.3086, allocations: 9.981 MB / 402.5 MB, free: 4.488 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins/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