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.001501/0.001501, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001515/0.001515, allocations: 189.6 kB / 24.49 MB, free: 3.98 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.361/1.361, allocations: 225.7 MB / 253.3 MB, free: 12.86 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 43.92 kB / 371.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2638, allocations: 52.19 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.007228/0.271, allocations: 5.61 MB / 429 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003043/0.2741, allocations: 1.76 MB / 430.7 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003526/0.2744, allocations: 23.88 kB / 430.7 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005061/0.2749, allocations: 206.1 kB / 430.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007445/0.2757, allocations: 400.9 kB / 431.3 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.2763, allocations: 375.6 kB / 431.7 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.2777, allocations: 1.491 MB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005208/0.2782, allocations: 345.8 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006084/0.2788, allocations: 0.5607 MB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006864/0.2795, allocations: 0.5991 MB / 434.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.2797, allocations: 160 kB / 434.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002187/0.2799, allocations: 160 kB / 435 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.2802, allocations: 303 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005021/0.2807, allocations: 0.5213 MB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.2824, allocations: 1.872 MB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2824, allocations: 0 / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2824, allocations: 0 / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.2824, allocations: 0 / 437.7 MB, free: 15.98 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.002726/0.2851, allocations: 1.408 MB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2852, allocations: 8.031 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.624e-05/0.2852, allocations: 26.19 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.2854, allocations: 148.3 kB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.2856, allocations: 124.2 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.2867, allocations: 0.6194 MB / 440 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.982e-05/0.2868, allocations: 74.38 kB / 440.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.2869, allocations: 96.33 kB / 440.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001866/0.2888, allocations: 1.063 MB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.2888, allocations: 0 / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.713e-05/0.2889, allocations: 40 kB / 441.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.583e-05/0.2889, allocations: 28 kB / 441.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.2907, allocations: 0.86 MB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004558/0.2953, allocations: 2.844 MB / 445 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.2967, allocations: 0.7759 MB / 445.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008437/0.2975, allocations: 431.6 kB / 446.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.2976, allocations: 24.28 kB / 446.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/0.2976, allocations: 43 kB / 446.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.515e-06/0.2976, allocations: 0 / 446.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.009219/0.3068, allocations: 3.949 MB / 450.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3069, allocations: 89.77 kB / 450.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007947/0.3077, allocations: 0.5968 MB / 450.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-05/0.3078, allocations: 45.7 kB / 451 MB, free: 2.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003307/0.3081, allocations: 441.1 kB / 451.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/0.3084, allocations: 412.4 kB / 451.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000292/0.3087, allocations: 182.9 kB / 452 MB, free: 1.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.3089, allocations: 390.7 kB / 452.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008234/0.3097, allocations: 382.4 kB / 452.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000924/0.3107, allocations: 0.5119 MB / 453.2 MB, free: 16 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.3124, allocations: 0.8849 MB / 454.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3124, allocations: 0 / 454.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002348/0.3148, allocations: 1.185 MB / 455.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.3148, allocations: 8.312 kB / 455.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.3148, allocations: 11.98 kB / 455.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.3152, allocations: 126.5 kB / 455.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.3162, allocations: 251.6 kB / 455.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003931/0.3201, allocations: 4.632 MB / 460.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000811/0.3209, allocations: 59.92 kB / 460.4 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/0.321, allocations: 36 kB / 460.4 MB, free: 8.426 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.0004958/0.3215, allocations: 273.6 kB / 460.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.3217, allocations: 95.39 kB / 460.8 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.3233, allocations: 0.7645 MB / 461.5 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.3233, allocations: 16 kB / 461.6 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.3233, allocations: 48 / 461.6 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.3233, allocations: 15.91 kB / 461.6 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.3273, allocations: 2.331 MB / 463.9 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.3273, allocations: 4 kB / 463.9 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.3282, allocations: 203.8 kB / 464.1 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000437/0.3286, allocations: 163.3 kB / 464.3 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.3287, allocations: 20 kB / 464.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00445/0.3332, allocations: 5.557 MB / 469.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3332, allocations: 0 / 469.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00309/0.3363, allocations: 1.746 MB / 471.6 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.3364, allocations: 91.47 kB / 471.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3365, allocations: 24 kB / 471.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/0.3371, allocations: 48.08 kB / 471.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.3373, allocations: 80.5 kB / 471.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.561e-05/0.3373, allocations: 39.98 kB / 471.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005503/0.3379, allocations: 439 kB / 472.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3379, allocations: 4 kB / 472.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008637/0.3387, allocations: 259.9 kB / 472.6 MB, free: 11.68 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.003399/0.3421, allocations: 2.319 MB / 474.9 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.3445, allocations: 1.296 MB / 476.2 MB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3445, allocations: 0 / 476.2 MB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.346, allocations: 0.971 MB / 477.1 MB, free: 6.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009679/0.347, allocations: 181.9 kB / 477.3 MB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.3599, allocations: 8.202 MB / 485.5 MB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.3604, allocations: 436.8 kB / 485.9 MB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005372/0.3609, allocations: 119.6 kB / 486.1 MB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/0.3615, allocations: 391.3 kB / 486.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3615, allocations: 0 / 486.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05952/0.421, allocations: 22.26 MB / 0.4968 GB, free: 7.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.18, allocations: 7.797 kB / 0.4968 GB, free: 7.492 MB / 414.1 MB " [Timeout remaining time 647] (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.071389477932826]