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.001572/0.001572, allocations: 109.4 kB / 17.73 MB, free: 5.363 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.00199/0.00199, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.419/1.419, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001333/0.001333, allocations: 52.3 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.1012, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.1884/0.2896, allocations: 6.323 MB / 381.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004198/0.2939, allocations: 2.133 MB / 383.6 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001376/0.2953, allocations: 20.44 kB / 383.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.2968, allocations: 353.2 kB / 384 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002315/0.2991, allocations: 0.4944 MB / 384.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001472/0.3006, allocations: 432.7 kB / 384.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003251/0.3039, allocations: 1.548 MB / 386.4 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.305, allocations: 0.5162 MB / 386.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.3062, allocations: 0.5741 MB / 387.5 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.3076, allocations: 0.6659 MB / 388.2 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005056/0.3081, allocations: 159.9 kB / 388.3 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007363/0.3088, allocations: 196.2 kB / 388.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000427/0.3093, allocations: 327.4 kB / 388.8 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009992/0.3103, allocations: 0.6621 MB / 389.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.3123, allocations: 1.933 MB / 391.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3123, allocations: 0 / 391.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3123, allocations: 0 / 391.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.3123, allocations: 1.188 kB / 391.4 MB, free: 5.621 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.00291/0.3153, allocations: 1.543 MB / 393 MB, free: 4.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3153, allocations: 10.64 kB / 393 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002002/0.3155, allocations: 127.2 kB / 393.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.3166, allocations: 0.7159 MB / 393.8 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.344e-05/0.3167, allocations: 78.38 kB / 393.9 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.3169, allocations: 101.8 kB / 394 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.3188, allocations: 1.01 MB / 395 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/0.3188, allocations: 6.062 kB / 395 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.3189, allocations: 35.75 kB / 395.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.759e-05/0.319, allocations: 22.81 kB / 395.1 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.3211, allocations: 0.8876 MB / 396 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005267/0.3263, allocations: 3.629 MB / 399.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002775/0.3291, allocations: 0.8981 MB / 400.5 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007263/0.3299, allocations: 374.8 kB / 400.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-05/0.3299, allocations: 7 kB / 400.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.33, allocations: 41.44 kB / 400.9 MB, free: 232 kB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.076e-06/0.33, allocations: 0 / 400.9 MB, free: 232 kB / 318.1 MB Notification: Performance of matching and sorting (n=67): time 0.005264/0.3353, allocations: 1.792 MB / 402.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.3353, allocations: 84.2 kB / 402.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.3367, allocations: 0.9752 MB / 403.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.158e-05/0.3367, allocations: 35.98 kB / 403.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/0.3371, allocations: 0.5259 MB / 404.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.3373, allocations: 240.7 kB / 404.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.3376, allocations: 155.5 kB / 404.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3377, allocations: 333.5 kB / 405 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000921/0.3386, allocations: 343.4 kB / 405.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/0.3396, allocations: 0.5247 MB / 405.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/0.3415, allocations: 0.83 MB / 406.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3416, allocations: 1.625 kB / 406.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002372/0.3439, allocations: 1.008 MB / 407.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.344, allocations: 11.31 kB / 407.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.344, allocations: 6.188 kB / 407.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.344, allocations: 9.75 kB / 407.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.3452, allocations: 286.7 kB / 408 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.3453, allocations: 13.97 kB / 408.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000842/0.3461, allocations: 65.75 kB / 408.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.589e-05/0.3462, allocations: 37.73 kB / 408.2 MB, free: 11.7 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.0004729/0.3467, allocations: 282.6 kB / 408.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.3469, allocations: 106.6 kB / 408.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009916/0.3479, allocations: 391 kB / 408.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3479, allocations: 7.438 kB / 408.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.3479, allocations: 3.938 kB / 408.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3479, allocations: 5.141 kB / 408.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.3518, allocations: 2.293 MB / 411.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-06/0.3518, allocations: 8.562 kB / 411.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.3527, allocations: 209.1 kB / 411.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.3527, allocations: 10.09 kB / 411.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.492e-05/0.3528, allocations: 22.08 kB / 411.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.417e-06/0.3528, allocations: 14.16 kB / 411.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.3528, allocations: 15.09 kB / 411.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.3545, allocations: 1.023 MB / 412.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.3548, allocations: 186.4 kB / 412.7 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.3549, allocations: 19.69 kB / 412.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.3555, allocations: 53.55 kB / 412.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.3557, allocations: 69.39 kB / 412.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.632e-05/0.3557, allocations: 26 kB / 412.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008844/0.3566, allocations: 0.6755 MB / 413.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3566, allocations: 0 / 413.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008612/0.3575, allocations: 216.1 kB / 413.8 MB, free: 7.934 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.000844/0.3583, allocations: 373.5 kB / 414.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.3602, allocations: 0.7809 MB / 414.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.3603, allocations: 0 / 414.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008087/0.3611, allocations: 365.8 kB / 415.3 MB, free: 6.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.3622, allocations: 203.6 kB / 415.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003335/0.3656, allocations: 1.894 MB / 417.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006538/0.3662, allocations: 1.018 MB / 418.4 MB, free: 3.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005285/0.3668, allocations: 119.2 kB / 418.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.367, allocations: 75.41 kB / 418.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.367, allocations: 0 / 418.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of Templates: time 0.01965/0.3867, allocations: 10.77 MB / 429.3 MB, free: 8.535 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