Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.001051, allocations: 96.98 kB / 17.01 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 194.2 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002053, allocations: 4 kB / 307.1 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08839, allocations: 51.53 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.006185/0.09461, allocations: 5.706 MB / 364.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0038/0.09844, allocations: 2.253 MB / 366.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007928/0.09926, allocations: 19.94 kB / 366.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008231/0.1001, allocations: 302.5 kB / 366.9 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1014, allocations: 453.3 kB / 367.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008266/0.1022, allocations: 283.5 kB / 367.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001643/0.1039, allocations: 1.397 MB / 369 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000543/0.1044, allocations: 374.2 kB / 369.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005841/0.105, allocations: 466.2 kB / 369.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006269/0.1057, allocations: 0.5562 MB / 370.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000107/0.1058, allocations: 60 kB / 370.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.106, allocations: 91.98 kB / 370.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002001/0.1062, allocations: 223 kB / 370.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.1064, allocations: 257.1 kB / 371 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1607/0.2671, allocations: 1.546 MB / 372.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2672, allocations: 0 / 372.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2672, allocations: 0.75 kB / 372.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.701e-05/0.2672, allocations: 0.625 kB / 372.6 MB, free: 10.59 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002349/0.2696, allocations: 1.36 MB / 373.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.2696, allocations: 9.125 kB / 373.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000487/0.2701, allocations: 160.8 kB / 374.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009546/0.2711, allocations: 0.6981 MB / 374.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.2712, allocations: 77.08 kB / 374.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.2714, allocations: 105.8 kB / 375 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/0.2733, allocations: 0.9879 MB / 376 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.2733, allocations: 6.344 kB / 376 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.582e-05/0.2734, allocations: 40.84 kB / 376 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.545e-05/0.2734, allocations: 25.66 kB / 376 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.275, allocations: 0.8393 MB / 376.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004736/0.2798, allocations: 3.698 MB / 380.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.2816, allocations: 0.6972 MB / 381.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.2822, allocations: 335.2 kB / 381.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.2822, allocations: 10.83 kB / 381.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.2823, allocations: 44.78 kB / 381.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.934e-06/0.2823, allocations: 0 / 381.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.00367/0.286, allocations: 1.775 MB / 383.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.286, allocations: 88.08 kB / 383.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.2872, allocations: 1.032 MB / 384.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.2873, allocations: 37.42 kB / 384.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.2876, allocations: 0.5461 MB / 385.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.2877, allocations: 243 kB / 385.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.2878, allocations: 16.38 kB / 385.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.062e-05/0.2879, allocations: 337.5 kB / 385.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.2886, allocations: 329.7 kB / 386 MB, free: 6.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007718/0.2894, allocations: 0.5111 MB / 386.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007731/0.2901, allocations: 384.4 kB / 386.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2902, allocations: 3.875 kB / 386.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001817/0.292, allocations: 1.005 MB / 387.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.292, allocations: 6.531 kB / 387.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.292, allocations: 6 kB / 387.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.2921, allocations: 17.2 kB / 387.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.2932, allocations: 309.6 kB / 388.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.2932, allocations: 16.77 kB / 388.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.2939, allocations: 61.38 kB / 388.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-05/0.294, allocations: 40.53 kB / 388.4 MB, free: 5.855 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_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003575/0.2943, allocations: 291.6 kB / 388.7 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.2945, allocations: 110.7 kB / 388.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007312/0.2952, allocations: 368.8 kB / 389.1 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/0.2952, allocations: 10.61 kB / 389.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.2953, allocations: 1.031 kB / 389.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2953, allocations: 2.578 kB / 389.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003278/0.2986, allocations: 2.331 MB / 391.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.2986, allocations: 7.344 kB / 391.5 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008084/0.2994, allocations: 232.3 kB / 391.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.2994, allocations: 12.48 kB / 391.7 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.2995, allocations: 25.67 kB / 391.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.231e-05/0.2995, allocations: 12.44 kB / 391.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.2995, allocations: 10.09 kB / 391.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.3008, allocations: 1.067 MB / 392.8 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.301, allocations: 199.4 kB / 393 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001188/0.3012, allocations: 21.61 kB / 393 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005874/0.3018, allocations: 62.45 kB / 393.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.57e-05/0.3019, allocations: 63.73 kB / 393.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.3019, allocations: 28.61 kB / 393.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008296/0.3027, allocations: 0.7194 MB / 393.9 MB, free: 2.641 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3028, allocations: 0 / 393.9 MB, free: 2.641 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008055/0.3036, allocations: 208.1 kB / 394.1 MB, free: 2.621 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007647/0.3043, allocations: 391.2 kB / 394.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.3058, allocations: 0.7555 MB / 395.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3058, allocations: 3.406 kB / 395.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006689/0.3065, allocations: 395.3 kB / 395.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.3076, allocations: 201.3 kB / 395.8 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.3102, allocations: 2.312 MB / 398.2 MB, free: 252 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/0.3107, allocations: 1.029 MB / 399.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005685/0.3113, allocations: 131.4 kB / 399.3 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.3115, allocations: 73.52 kB / 399.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3116, allocations: 0 / 399.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of Templates: time 0.01809/0.3296, allocations: 9.873 MB / 409.3 MB, free: 6.445 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches