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.001474/0.001474, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001712/0.001712, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 50.8 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1152, allocations: 49.44 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.008372/0.1237, allocations: 6.395 MB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004204/0.1279, allocations: 2.197 MB / 359.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.129, allocations: 19.94 kB / 359.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1301, allocations: 357.8 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001729/0.1319, allocations: 476.7 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1332, allocations: 455.3 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002107/0.1353, allocations: 1.526 MB / 362.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007202/0.136, allocations: 0.5172 MB / 362.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007683/0.1368, allocations: 0.5723 MB / 363.2 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006648/0.1375, allocations: 0.6653 MB / 363.9 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.1377, allocations: 160 kB / 364 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002875/0.138, allocations: 188 kB / 364.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.1383, allocations: 323 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005642/0.1388, allocations: 0.6688 MB / 365.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.1404, allocations: 1.916 MB / 367.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1404, allocations: 4 kB / 367.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1404, allocations: 0 / 367.1 MB, free: 3.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.1405, allocations: 0 / 367.1 MB, free: 3.914 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.002982/0.1435, allocations: 1.535 MB / 368.7 MB, free: 2.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1435, allocations: 15.83 kB / 368.7 MB, free: 2.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.1437, allocations: 127.4 kB / 368.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.1448, allocations: 0.7046 MB / 369.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.1449, allocations: 82.48 kB / 369.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.1451, allocations: 95.94 kB / 369.7 MB, free: 1.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/0.1469, allocations: 1.013 MB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.147, allocations: 3.906 kB / 370.7 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.608e-05/0.1471, allocations: 36 kB / 370.7 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.1471, allocations: 24 kB / 370.8 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1995/0.3466, allocations: 0.883 MB / 371.6 MB, free: 21.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005775/0.3524, allocations: 3.655 MB / 375.3 MB, free: 20.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003007/0.3555, allocations: 0.8932 MB / 376.2 MB, free: 20.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008271/0.3563, allocations: 376 kB / 376.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.3564, allocations: 8.203 kB / 376.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.3564, allocations: 39.28 kB / 376.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.274e-06/0.3564, allocations: 4.344 kB / 376.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004986/0.3614, allocations: 1.786 MB / 378.4 MB, free: 19.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3615, allocations: 84.3 kB / 378.5 MB, free: 19.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.3628, allocations: 0.9835 MB / 379.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.3629, allocations: 36.67 kB / 379.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003444/0.3632, allocations: 0.5232 MB / 380 MB, free: 18.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.3634, allocations: 232.9 kB / 380.2 MB, free: 18.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002886/0.3637, allocations: 157.7 kB / 380.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.3638, allocations: 340.2 kB / 380.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009945/0.3648, allocations: 342.7 kB / 381.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001081/0.3659, allocations: 0.5242 MB / 381.6 MB, free: 17.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001794/0.3677, allocations: 0.8242 MB / 382.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.3677, allocations: 2.219 kB / 382.4 MB, free: 16.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002386/0.3701, allocations: 1.026 MB / 383.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3701, allocations: 7.844 kB / 383.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3702, allocations: 4.688 kB / 383.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.3702, allocations: 13.81 kB / 383.5 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.3714, allocations: 284.7 kB / 383.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/0.3715, allocations: 13.94 kB / 383.8 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/0.3723, allocations: 65.06 kB / 383.8 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.707e-05/0.3724, allocations: 37.31 kB / 383.9 MB, free: 16.57 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.0004092/0.3728, allocations: 284.5 kB / 384.1 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.373, allocations: 99.05 kB / 384.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00103/0.374, allocations: 393.2 kB / 384.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.374, allocations: 7.75 kB / 384.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/0.3741, allocations: 0 / 384.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.3741, allocations: 6.125 kB / 384.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.378, allocations: 2.307 MB / 386.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.3781, allocations: 6.281 kB / 386.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009141/0.379, allocations: 205 kB / 387.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.379, allocations: 9.625 kB / 387.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.383e-05/0.3791, allocations: 21.5 kB / 387.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.717e-05/0.3791, allocations: 17.27 kB / 387.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/0.3791, allocations: 6.844 kB / 387.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.3809, allocations: 1.035 MB / 388.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002628/0.3812, allocations: 183.5 kB / 388.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.3814, allocations: 21.8 kB / 388.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.382, allocations: 47.14 kB / 388.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.3821, allocations: 77.22 kB / 388.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/0.3822, allocations: 27.02 kB / 388.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000928/0.3831, allocations: 0.6808 MB / 389.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3831, allocations: 1.125 kB / 389.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008594/0.384, allocations: 207.3 kB / 389.5 MB, free: 13.58 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.0008779/0.3849, allocations: 386.2 kB / 389.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001917/0.3868, allocations: 0.7863 MB / 390.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3868, allocations: 0 / 390.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007172/0.3875, allocations: 377.2 kB / 391 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.3888, allocations: 203.3 kB / 391.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.3919, allocations: 1.966 MB / 393.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.3924, allocations: 1.015 MB / 394.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003067/0.3927, allocations: 81.5 kB / 394.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3927, allocations: 4 kB / 394.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01635/0.4091, allocations: 12.91 MB / 407.2 MB, free: 15.06 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