Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001515/0.001515, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001884/0.001884, allocations: 188.2 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 51.94 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09595, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.1924/0.2884, allocations: 6.334 MB / 381.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002717/0.2911, allocations: 2.128 MB / 383.6 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004034/0.2916, allocations: 20.56 kB / 383.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007502/0.2924, allocations: 353.9 kB / 384 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009396/0.2933, allocations: 490.3 kB / 384.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007939/0.2941, allocations: 431 kB / 384.9 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.2955, allocations: 1.548 MB / 386.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005894/0.2961, allocations: 0.5182 MB / 386.9 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006641/0.2968, allocations: 0.5668 MB / 387.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007664/0.2975, allocations: 0.6663 MB / 388.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002123/0.2978, allocations: 160.2 kB / 388.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003474/0.2981, allocations: 188 kB / 388.5 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.2984, allocations: 330.3 kB / 388.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005387/0.2989, allocations: 0.6599 MB / 389.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002367/0.3013, allocations: 1.94 MB / 391.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3013, allocations: 0 / 391.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3013, allocations: 0 / 391.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.942e-05/0.3014, allocations: 1.125 kB / 391.4 MB, free: 5.617 MB / 318.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.003889/0.3053, allocations: 1.581 MB / 393 MB, free: 4.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.3053, allocations: 9.375 kB / 393 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.3056, allocations: 135.9 kB / 393.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.3069, allocations: 0.7216 MB / 393.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.307, allocations: 77.09 kB / 393.9 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.3072, allocations: 102.8 kB / 394 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0024/0.3096, allocations: 1.006 MB / 395.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.3097, allocations: 1.312 kB / 395.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.912e-05/0.3098, allocations: 45.41 kB / 395.1 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.83e-05/0.3098, allocations: 23.72 kB / 395.1 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/0.3121, allocations: 0.8863 MB / 396 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005291/0.3174, allocations: 3.641 MB / 399.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002764/0.3202, allocations: 0.8948 MB / 400.5 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007147/0.3209, allocations: 377.4 kB / 400.9 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.582e-05/0.321, allocations: 12.25 kB / 400.9 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.321, allocations: 37.31 kB / 401 MB, free: 148 kB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.124e-06/0.321, allocations: 0 / 401 MB, free: 148 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.00485/0.3259, allocations: 1.823 MB / 402.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.3259, allocations: 83.98 kB / 402.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.3273, allocations: 0.9792 MB / 403.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.084e-05/0.3274, allocations: 35.98 kB / 403.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.3278, allocations: 0.5313 MB / 404.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.3279, allocations: 246.2 kB / 404.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000279/0.3282, allocations: 158.5 kB / 404.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.3284, allocations: 346.5 kB / 405.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009198/0.3293, allocations: 338.4 kB / 405.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009982/0.3303, allocations: 0.5211 MB / 406 MB, free: 12.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/0.3321, allocations: 0.8256 MB / 406.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3321, allocations: 5.125 kB / 406.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002398/0.3345, allocations: 1.019 MB / 407.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.3346, allocations: 10.78 kB / 407.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3346, allocations: 5.125 kB / 407.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/0.3346, allocations: 10.5 kB / 407.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3358, allocations: 287 kB / 408.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.3359, allocations: 9 kB / 408.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.3367, allocations: 66.17 kB / 408.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.819e-05/0.3368, allocations: 37.98 kB / 408.3 MB, free: 11.57 MB / 334.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.000447/0.3373, allocations: 287.5 kB / 408.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001742/0.3375, allocations: 106 kB / 408.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.3385, allocations: 387.8 kB / 409 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.3385, allocations: 11.11 kB / 409 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.3385, allocations: 3.938 kB / 409 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.3385, allocations: 1.094 kB / 409 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004045/0.3426, allocations: 2.296 MB / 411.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.3426, allocations: 7.531 kB / 411.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008461/0.3435, allocations: 212.6 kB / 411.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.3435, allocations: 7.031 kB / 411.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.805e-05/0.3435, allocations: 25.02 kB / 411.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.3435, allocations: 12.03 kB / 411.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.3436, allocations: 17.94 kB / 411.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.3453, allocations: 1.03 MB / 412.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.3456, allocations: 193.9 kB / 412.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.3457, allocations: 23.55 kB / 412.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/0.3464, allocations: 45.39 kB / 412.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.3465, allocations: 70.22 kB / 413 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.311e-05/0.3466, allocations: 28.52 kB / 413 MB, free: 8.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009207/0.3475, allocations: 0.6772 MB / 413.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3475, allocations: 0 / 413.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000854/0.3484, allocations: 202.9 kB / 413.9 MB, free: 7.793 MB / 334.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.0008627/0.3492, allocations: 390.2 kB / 414.3 MB, free: 7.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.3512, allocations: 0.7614 MB / 415 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.3512, allocations: 4 kB / 415 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008191/0.3521, allocations: 373.8 kB / 415.4 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.3533, allocations: 203.6 kB / 415.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/0.3566, allocations: 1.927 MB / 417.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.3572, allocations: 1.014 MB / 418.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.3578, allocations: 119.2 kB / 418.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.358, allocations: 79.41 kB / 418.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.358, allocations: 0 / 418.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of Templates: time 0.01952/0.3775, allocations: 10.77 MB / 429.5 MB, free: 8.367 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ForceCurrentBehaviour/ForceCurrentBehaviour.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches