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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 97.62 kB / 16.5 MB, free: 6.688 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.001163/0.001163, allocations: 191.4 kB / 17.42 MB, free: 6.09 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.348/1.348, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 51.55 kB / 300.1 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08514/0.08645, allocations: 49.45 MB / 349.5 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.007354/0.09384, allocations: 6.388 MB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003916/0.09778, allocations: 2.154 MB / 358.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009123/0.09872, allocations: 23.94 kB / 358.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.09976, allocations: 314.5 kB / 358.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001512/0.1013, allocations: 429.6 kB / 358.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.1025, allocations: 403.6 kB / 359.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.105, allocations: 1.425 MB / 360.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008429/0.1059, allocations: 459 kB / 361.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008685/0.1067, allocations: 498 kB / 361.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009334/0.1077, allocations: 0.6029 MB / 362.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002847/0.108, allocations: 76 kB / 362.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004536/0.1084, allocations: 111.9 kB / 362.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.1088, allocations: 239 kB / 362.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009706/0.1098, allocations: 0.5906 MB / 363.2 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.1116, allocations: 1.842 MB / 365 MB, free: 5.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1116, allocations: 3.984 kB / 365 MB, free: 5.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1116, allocations: 0 / 365 MB, free: 5.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.683e-05/0.1116, allocations: 0 / 365 MB, free: 5.188 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.003383/0.115, allocations: 1.538 MB / 366.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.1151, allocations: 8.031 kB / 366.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.1153, allocations: 156.2 kB / 366.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.1155, allocations: 131.4 kB / 366.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.1167, allocations: 0.7045 MB / 367.5 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.1168, allocations: 78.31 kB / 367.6 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.1169, allocations: 99.91 kB / 367.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001846/0.1188, allocations: 1.009 MB / 368.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.1188, allocations: 0 / 368.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.492e-05/0.1189, allocations: 43.98 kB / 368.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.119, allocations: 24 kB / 368.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.1209, allocations: 0.8913 MB / 369.7 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1682/0.2891, allocations: 3.641 MB / 373.3 MB, free: 23.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/0.2922, allocations: 0.8953 MB / 374.2 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008255/0.293, allocations: 370.1 kB / 374.6 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.969e-05/0.2931, allocations: 9.5 kB / 374.6 MB, free: 22.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.2932, allocations: 49.23 kB / 374.6 MB, free: 22.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 3.347e-06/0.2932, allocations: 0 / 374.6 MB, free: 22.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.00476/0.2979, allocations: 1.775 MB / 376.4 MB, free: 22.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.298, allocations: 84.78 kB / 376.5 MB, free: 22.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001398/0.2994, allocations: 0.9892 MB / 377.5 MB, free: 21.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.2995, allocations: 36.36 kB / 377.5 MB, free: 21.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.2998, allocations: 0.5157 MB / 378 MB, free: 21.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.3, allocations: 233.9 kB / 378.3 MB, free: 21.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.3003, allocations: 160.5 kB / 378.4 MB, free: 20.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.3004, allocations: 348.3 kB / 378.8 MB, free: 20.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009744/0.3014, allocations: 340.5 kB / 379.1 MB, free: 20.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3024, allocations: 0.517 MB / 379.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001748/0.3042, allocations: 0.8368 MB / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3042, allocations: 0 / 380.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002356/0.3066, allocations: 1.026 MB / 381.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3066, allocations: 6.406 kB / 381.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.3066, allocations: 5.891 kB / 381.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.3067, allocations: 9.875 kB / 381.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.3079, allocations: 285.2 kB / 381.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/0.308, allocations: 12.17 kB / 381.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008469/0.3088, allocations: 70.16 kB / 381.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.739e-05/0.3089, allocations: 36.45 kB / 381.9 MB, free: 19.29 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.0004218/0.3093, allocations: 287.2 kB / 382.2 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.3095, allocations: 102.8 kB / 382.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009159/0.3104, allocations: 381.7 kB / 382.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3104, allocations: 10.66 kB / 382.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.3104, allocations: 1.25 kB / 382.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.3105, allocations: 8.391 kB / 382.7 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.3141, allocations: 2.301 MB / 385 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.3141, allocations: 6.844 kB / 385 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.3149, allocations: 211.9 kB / 385.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-05/0.3149, allocations: 10.67 kB / 385.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.315, allocations: 23.41 kB / 385.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.04e-05/0.315, allocations: 8.594 kB / 385.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.315, allocations: 11.94 kB / 385.2 MB, free: 17.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.3165, allocations: 1.031 MB / 386.3 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.3167, allocations: 186.1 kB / 386.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3168, allocations: 23.59 kB / 386.5 MB, free: 16.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/0.3174, allocations: 49.62 kB / 386.5 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3175, allocations: 66.56 kB / 386.6 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.3176, allocations: 32.08 kB / 386.6 MB, free: 16.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007798/0.3183, allocations: 0.6777 MB / 387.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3184, allocations: 0 / 387.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008364/0.3192, allocations: 205.1 kB / 387.5 MB, free: 16.18 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.00225/0.3215, allocations: 1.861 MB / 389.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.3231, allocations: 0.747 MB / 390.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3231, allocations: 7.938 kB / 390.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007161/0.3238, allocations: 367.9 kB / 390.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.3251, allocations: 197.1 kB / 390.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.3385, allocations: 9.384 MB / 400 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3389, allocations: 1.018 MB / 401.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006381/0.3396, allocations: 123.2 kB / 401.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.34, allocations: 383.3 kB / 401.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.34, allocations: 3.938 kB / 401.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03868/0.3787, allocations: 18.95 MB / 420.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004376/0.3792, allocations: 275.9 kB / 420.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.592, allocations: 2.953 kB / 420.8 MB, free: 1.812 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > 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