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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2668, allocations: 52.2 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008189/0.275, allocations: 6.37 MB / 429 MB, free: 8.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.2786, allocations: 1.85 MB / 430.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006896/0.2793, allocations: 23.88 kB / 430.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000709/0.28, allocations: 210.1 kB / 431.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.2811, allocations: 408.8 kB / 431.5 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008049/0.2819, allocations: 371.6 kB / 431.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001813/0.2837, allocations: 1.495 MB / 433.3 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005937/0.2843, allocations: 350.8 kB / 433.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006934/0.285, allocations: 0.5529 MB / 434.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007399/0.2857, allocations: 0.5991 MB / 434.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.2859, allocations: 156 kB / 435 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.2861, allocations: 163.9 kB / 435.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.2864, allocations: 307 kB / 435.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006512/0.2871, allocations: 0.6418 MB / 436.1 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002176/0.2892, allocations: 1.856 MB / 437.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2893, allocations: 0 / 437.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.2893, allocations: 0 / 437.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.2893, allocations: 0 / 437.9 MB, free: 15.22 MB / 350.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.003112/0.2924, allocations: 1.404 MB / 439.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.2924, allocations: 12.03 kB / 439.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000188/0.2926, allocations: 144.3 kB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.2928, allocations: 128.2 kB / 439.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.2941, allocations: 0.6155 MB / 440.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-05/0.2942, allocations: 74.38 kB / 440.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.2944, allocations: 104.3 kB / 440.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.2963, allocations: 1.009 MB / 441.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/0.2963, allocations: 4 kB / 441.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.84e-05/0.2964, allocations: 40 kB / 441.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.2964, allocations: 20 kB / 441.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.2983, allocations: 0.864 MB / 442.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005521/0.3038, allocations: 3.24 MB / 445.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/0.3054, allocations: 0.781 MB / 446.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009255/0.3063, allocations: 431.6 kB / 446.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.19e-05/0.3064, allocations: 16.36 kB / 446.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.3064, allocations: 43.06 kB / 446.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.635e-06/0.3064, allocations: 0 / 446.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.00991/0.3163, allocations: 3.942 MB / 450.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.3164, allocations: 89.77 kB / 450.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008721/0.3173, allocations: 0.6046 MB / 451.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.692e-05/0.3173, allocations: 45.7 kB / 451.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003554/0.3177, allocations: 437.1 kB / 452 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/0.318, allocations: 416.4 kB / 452.4 MB, free: 432 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/0.3183, allocations: 178.9 kB / 452.5 MB, free: 248 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.3185, allocations: 394.7 kB / 452.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008331/0.3194, allocations: 386.4 kB / 453.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009758/0.3204, allocations: 0.5042 MB / 453.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.3221, allocations: 0.8848 MB / 454.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3221, allocations: 11.88 kB / 454.7 MB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002424/0.3245, allocations: 1.189 MB / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.3245, allocations: 7.281 kB / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.3246, allocations: 4 kB / 455.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004232/0.325, allocations: 130.5 kB / 456 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.326, allocations: 255.7 kB / 456.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004373/0.3304, allocations: 4.664 MB / 460.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000753/0.3311, allocations: 51.95 kB / 461 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.14e-05/0.3312, allocations: 35.94 kB / 461 MB, free: 7.309 MB / 366.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.000517/0.3317, allocations: 279.4 kB / 461.3 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.3319, allocations: 95.39 kB / 461.4 MB, free: 6.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/0.3335, allocations: 0.7644 MB / 462.2 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3336, allocations: 12 kB / 462.2 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.3336, allocations: 4 kB / 462.2 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3336, allocations: 3.984 kB / 462.2 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004311/0.3379, allocations: 2.618 MB / 464.8 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3379, allocations: 0 / 464.8 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008982/0.3388, allocations: 207.8 kB / 465 MB, free: 3.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004287/0.3392, allocations: 155.3 kB / 465.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.179e-05/0.3393, allocations: 27.98 kB / 465.2 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004827/0.3441, allocations: 5.584 MB / 470.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3441, allocations: 0 / 470.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/0.3474, allocations: 1.742 MB / 472.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.3477, allocations: 91.47 kB / 472.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.3478, allocations: 27.94 kB / 472.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005815/0.3484, allocations: 51.97 kB / 472.7 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.3486, allocations: 80.44 kB / 472.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.146e-05/0.3486, allocations: 32.11 kB / 472.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006228/0.3492, allocations: 443.1 kB / 473.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3492, allocations: 0 / 473.2 MB, free: 10.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000926/0.3502, allocations: 252 kB / 473.5 MB, free: 10.25 MB / 382.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.003607/0.3538, allocations: 2.324 MB / 475.8 MB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002562/0.3563, allocations: 1.292 MB / 477.1 MB, free: 6.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3563, allocations: 4.062 kB / 477.1 MB, free: 6.539 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.3581, allocations: 0.9669 MB / 478 MB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.3591, allocations: 191.4 kB / 478.2 MB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.3728, allocations: 8.212 MB / 486.4 MB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007791/0.3736, allocations: 1.024 MB / 487.5 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005327/0.3741, allocations: 119.6 kB / 487.6 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/0.3747, allocations: 387.3 kB / 488 MB, free: 11.34 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3747, allocations: 0 / 488 MB, free: 11.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07221/0.4469, allocations: 21.66 MB / 0.4977 GB, free: 5.926 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.63, allocations: 9.625 kB / 0.4977 GB, free: 5.922 MB / 414.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.94036e-06 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.39710734388791]