Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",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.001227/0.001233, allocations: 107.7 kB / 17.06 MB, free: 6.098 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.001171/0.001171, allocations: 198.9 kB / 18 MB, free: 5.168 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.344/1.344, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001683, allocations: 39.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3623, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008378/0.3708, allocations: 6.311 MB / 406.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003661/0.3745, allocations: 1.842 MB / 408.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009938/0.3755, allocations: 19.94 kB / 408.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008706/0.3764, allocations: 214.1 kB / 408.6 MB, free: 404 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.378, allocations: 405 kB / 409 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008477/0.3789, allocations: 375.5 kB / 409.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001676/0.3806, allocations: 1.498 MB / 410.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006457/0.3812, allocations: 0.5052 MB / 411.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000671/0.3819, allocations: 0.5412 MB / 411.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00088/0.3828, allocations: 0.603 MB / 412.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002723/0.3831, allocations: 156 kB / 412.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002822/0.3834, allocations: 160 kB / 412.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003123/0.3837, allocations: 303.1 kB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008336/0.3846, allocations: 0.6417 MB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.3871, allocations: 1.852 MB / 415.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.3872, allocations: 7.922 kB / 415.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3872, allocations: 0 / 415.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.58e-05/0.3872, allocations: 0 / 415.6 MB, free: 9.34 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.00438/0.3916, allocations: 1.476 MB / 417.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.3917, allocations: 12.03 kB / 417.1 MB, free: 7.801 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002487/0.3919, allocations: 144.3 kB / 417.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.3923, allocations: 124.2 kB / 417.4 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.394, allocations: 0.6772 MB / 418.1 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.857e-05/0.3942, allocations: 74.38 kB / 418.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/0.3944, allocations: 100.3 kB / 418.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/0.3973, allocations: 1.009 MB / 419.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.575e-05/0.3974, allocations: 8 kB / 419.2 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.3976, allocations: 36 kB / 419.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.112e-05/0.3976, allocations: 24 kB / 419.3 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002386/0.4, allocations: 0.8679 MB / 420.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004807/0.4048, allocations: 3.306 MB / 423.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001401/0.4063, allocations: 0.8215 MB / 424.3 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000849/0.4071, allocations: 471.8 kB / 424.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.4072, allocations: 16.42 kB / 424.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.4072, allocations: 47.12 kB / 424.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 5.19e-06/0.4072, allocations: 7.922 kB / 424.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.009629/0.4169, allocations: 4.331 MB / 429.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.417, allocations: 85.77 kB / 429.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008625/0.4178, allocations: 0.6046 MB / 429.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.236e-05/0.4179, allocations: 45.7 kB / 429.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002955/0.4182, allocations: 433.1 kB / 430.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003281/0.4186, allocations: 416.4 kB / 430.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.4189, allocations: 178.9 kB / 430.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4191, allocations: 398.7 kB / 431.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008439/0.4199, allocations: 382.4 kB / 431.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009126/0.4208, allocations: 0.5081 MB / 432.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.4226, allocations: 0.8809 MB / 433 MB, free: 7.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.4226, allocations: 4 kB / 433 MB, free: 7.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002447/0.4251, allocations: 1.193 MB / 434.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.4251, allocations: 10.66 kB / 434.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.4251, allocations: 4 kB / 434.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004318/0.4256, allocations: 130.5 kB / 434.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.4266, allocations: 243.7 kB / 434.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.4308, allocations: 4.981 MB / 439.6 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008291/0.4317, allocations: 52 kB / 439.7 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4318, allocations: 43.92 kB / 439.7 MB, free: 232 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (128): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005892/0.4324, allocations: 281.7 kB / 440 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.4326, allocations: 91.44 kB / 440.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.4343, allocations: 0.7683 MB / 440.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.4344, allocations: 12 kB / 440.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.187e-05/0.4344, allocations: 4 kB / 440.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4344, allocations: 3.984 kB / 440.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/0.439, allocations: 2.648 MB / 443.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.439, allocations: 0 / 443.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/0.4399, allocations: 211.7 kB / 443.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004801/0.4404, allocations: 159.4 kB / 443.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.581e-05/0.4405, allocations: 27.98 kB / 443.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004516/0.445, allocations: 5.998 MB / 449.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4451, allocations: 0 / 449.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.4485, allocations: 1.746 MB / 451.6 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.4488, allocations: 172.6 kB / 451.8 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.449, allocations: 23.95 kB / 451.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000696/0.4497, allocations: 51.95 kB / 451.9 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.4499, allocations: 80.39 kB / 452 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.264e-05/0.45, allocations: 28 kB / 452 MB, free: 3.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006412/0.4506, allocations: 443.1 kB / 452.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4506, allocations: 0 / 452.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001105/0.4518, allocations: 259.9 kB / 452.7 MB, free: 2.504 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * 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 simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003678/0.4554, allocations: 2.326 MB / 455 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002697/0.4582, allocations: 1.342 MB / 456.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.4582, allocations: 8.188 kB / 456.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.4597, allocations: 0.9975 MB / 457.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.461, allocations: 187.1 kB / 457.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.4753, allocations: 8.222 MB / 465.7 MB, free: 5.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006841/0.476, allocations: 1.024 MB / 466.8 MB, free: 4.012 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005692/0.4766, allocations: 119.6 kB / 466.9 MB, free: 3.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005699/0.4772, allocations: 389.7 kB / 467.3 MB, free: 3.512 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4772, allocations: 0 / 467.3 MB, free: 3.512 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05927/0.5365, allocations: 20.75 MB / 488 MB, free: 15.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.38, allocations: 14.48 kB / 488 MB, free: 15.04 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches