Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001783/0.001783, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002283/0.002283, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 63.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1109, allocations: 53.32 MB / 426.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.2131/0.324, allocations: 6.451 MB / 433.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003057/0.3271, allocations: 1.915 MB / 435 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003899/0.3275, allocations: 22.47 kB / 435 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004671/0.328, allocations: 220.2 kB / 435.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006798/0.3286, allocations: 429.3 kB / 435.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.3292, allocations: 368.7 kB / 436 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.3304, allocations: 1.502 MB / 437.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/0.3308, allocations: 355.4 kB / 437.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007443/0.3316, allocations: 0.5631 MB / 438.5 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006568/0.3322, allocations: 0.6074 MB / 439.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.3324, allocations: 159.3 kB / 439.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002577/0.3327, allocations: 171.2 kB / 439.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.3329, allocations: 307.4 kB / 439.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004821/0.3333, allocations: 0.6619 MB / 440.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.3353, allocations: 1.887 MB / 442.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3353, allocations: 1.062 kB / 442.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.3353, allocations: 1.125 kB / 442.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.3354, allocations: 0 / 442.2 MB, free: 4.488 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002816/0.3382, allocations: 1.477 MB / 443.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.3382, allocations: 10.03 kB / 443.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.3384, allocations: 151.8 kB / 443.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005946/0.339, allocations: 155.3 kB / 444 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.3402, allocations: 0.6995 MB / 444.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.3403, allocations: 74.19 kB / 444.8 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.3405, allocations: 97.72 kB / 444.9 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.3422, allocations: 0.9721 MB / 445.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/0.3423, allocations: 12.47 kB / 445.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.3424, allocations: 40.41 kB / 445.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.29e-05/0.3424, allocations: 23 kB / 445.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3438, allocations: 0.8004 MB / 446.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.3485, allocations: 3.32 MB / 450.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.3498, allocations: 0.748 MB / 450.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007446/0.3505, allocations: 405.7 kB / 451.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.684e-05/0.3506, allocations: 19.81 kB / 451.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.357e-05/0.3506, allocations: 44.69 kB / 451.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.976e-06/0.3507, allocations: 2.281 kB / 451.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.008895/0.3595, allocations: 4.203 MB / 455.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/0.3596, allocations: 91.02 kB / 455.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000926/0.3605, allocations: 0.6438 MB / 456.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.884e-05/0.3606, allocations: 41.86 kB / 456.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000376/0.361, allocations: 447.4 kB / 456.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003651/0.3614, allocations: 423.3 kB / 457.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003157/0.3617, allocations: 187.5 kB / 457.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002407/0.3619, allocations: 404.1 kB / 457.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007037/0.3626, allocations: 342.5 kB / 458 MB, free: 11.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008228/0.3634, allocations: 489.3 kB / 458.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.3649, allocations: 0.858 MB / 459.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.3649, allocations: 1.375 kB / 459.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002062/0.367, allocations: 1.146 MB / 460.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.367, allocations: 14.66 kB / 460.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.367, allocations: 2.438 kB / 460.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000373/0.3674, allocations: 128.1 kB / 460.6 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009857/0.3684, allocations: 240.5 kB / 460.9 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004419/0.3728, allocations: 4.985 MB / 465.8 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007235/0.3735, allocations: 31.83 kB / 465.9 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-05/0.3736, allocations: 45.77 kB / 465.9 MB, free: 4.793 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 (132): * Single equations (assignments): 129 * 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.0005188/0.3741, allocations: 274.5 kB / 466.2 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.3743, allocations: 105.2 kB / 466.3 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/0.3759, allocations: 0.7425 MB / 467 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3759, allocations: 15.72 kB / 467.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.3759, allocations: 3.438 kB / 467.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3759, allocations: 5.109 kB / 467.1 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004558/0.3805, allocations: 2.609 MB / 469.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.3805, allocations: 1.094 kB / 469.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008553/0.3813, allocations: 197.4 kB / 469.9 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004465/0.3818, allocations: 158 kB / 470 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.744e-05/0.3819, allocations: 28.23 kB / 470 MB, free: 2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005073/0.3869, allocations: 5.987 MB / 476 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3869, allocations: 1 kB / 476 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002973/0.3899, allocations: 1.664 MB / 477.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005424/0.3904, allocations: 253.6 kB / 477.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.3906, allocations: 25.47 kB / 478 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/0.3913, allocations: 37.8 kB / 478 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.3914, allocations: 80.2 kB / 478.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-05/0.3915, allocations: 36.42 kB / 478.1 MB, free: 10.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006405/0.3921, allocations: 465.5 kB / 478.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3921, allocations: 2.844 kB / 478.6 MB, free: 10.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001094/0.3932, allocations: 257.3 kB / 478.8 MB, free: 10.32 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 (108): * Single equations (assignments): 104 * 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.003293/0.3965, allocations: 2.247 MB / 481.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.3988, allocations: 1.221 MB / 482.3 MB, free: 7.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.3988, allocations: 4 kB / 482.3 MB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.4002, allocations: 0.9401 MB / 483.2 MB, free: 6.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.4016, allocations: 210.2 kB / 483.4 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.4161, allocations: 8.205 MB / 491.7 MB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009282/0.4171, allocations: 1.037 MB / 492.7 MB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006391/0.4177, allocations: 132 kB / 492.8 MB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006478/0.4184, allocations: 395.3 kB / 493.2 MB, free: 12.63 MB / 398.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4184, allocations: 0 / 493.2 MB, free: 12.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07441/0.4928, allocations: 21.71 MB / 0.5028 GB, free: 7.172 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.34, allocations: 21.19 kB / 0.5029 GB, free: 7.152 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=1e-05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 15.306440236978233]