Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009985/0.0009985, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009206/0.0009206, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8873/0.8873, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.017e-05/2.187e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.004676/0.004698, allocations: 5.725 MB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002542/0.00724, allocations: 1.843 MB / 332.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004003/0.007641, allocations: 23.88 kB / 332.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000466/0.008107, allocations: 221.9 kB / 332.4 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006668/0.008774, allocations: 436.5 kB / 332.8 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005336/0.009307, allocations: 379.4 kB / 333.2 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.01035, allocations: 1.557 MB / 334.7 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004063/0.01075, allocations: 321.9 kB / 335 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.01178, allocations: 0.8654 MB / 335.9 MB, free: 4.531 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.01224, allocations: 458.7 kB / 336.4 MB, free: 4.082 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.01237, allocations: 164 kB / 336.5 MB, free: 3.922 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.01256, allocations: 171.9 kB / 336.7 MB, free: 3.754 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.01271, allocations: 306.9 kB / 337 MB, free: 3.453 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003793/0.01309, allocations: 474.9 kB / 337.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001574/0.01467, allocations: 1.936 MB / 339.4 MB, free: 1.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.01467, allocations: 0 / 339.4 MB, free: 1.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.01467, allocations: 0 / 339.4 MB, free: 1.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.0147, allocations: 0 / 339.4 MB, free: 1.043 MB / 298.7 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.001955/0.01665, allocations: 1.381 MB / 340.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.01671, allocations: 12.03 kB / 340.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001448/0.01685, allocations: 152.4 kB / 340.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003464/0.0172, allocations: 156.1 kB / 341.1 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.01824, allocations: 0.6342 MB / 341.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.698e-05/0.01831, allocations: 82.12 kB / 341.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.01842, allocations: 99.98 kB / 341.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.01974, allocations: 1.024 MB / 342.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.01977, allocations: 3.953 kB / 342.9 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.224e-05/0.01983, allocations: 47.92 kB / 343 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.01985, allocations: 24 kB / 343 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.02091, allocations: 0.7938 MB / 343.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003457/0.02436, allocations: 2.845 MB / 346.6 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009198/0.02528, allocations: 0.7563 MB / 347.4 MB, free: 8.844 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/0.02575, allocations: 414.9 kB / 347.8 MB, free: 8.434 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.449e-05/0.02579, allocations: 16.48 kB / 347.8 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.02582, allocations: 43.06 kB / 347.8 MB, free: 8.367 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 3.266e-06/0.02583, allocations: 0 / 347.8 MB, free: 8.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=119): time 0.005725/0.03155, allocations: 3.824 MB / 351.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.0316, allocations: 89.77 kB / 351.8 MB, free: 4.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006384/0.03224, allocations: 0.6447 MB / 352.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.03228, allocations: 45.7 kB / 352.4 MB, free: 3.617 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.03249, allocations: 441.1 kB / 352.9 MB, free: 3.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/0.03271, allocations: 428.3 kB / 353.3 MB, free: 2.758 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.0329, allocations: 186.9 kB / 353.5 MB, free: 2.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.03303, allocations: 394.7 kB / 353.9 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.03345, allocations: 350.5 kB / 354.2 MB, free: 1.836 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.03395, allocations: 492.7 kB / 354.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.03515, allocations: 0.852 MB / 355.5 MB, free: 436 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.03515, allocations: 0 / 355.5 MB, free: 436 kB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001336/0.03649, allocations: 1.151 MB / 356.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.03651, allocations: 4 kB / 356.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.03652, allocations: 7.984 kB / 356.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003033/0.03682, allocations: 130.7 kB / 356.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005356/0.03736, allocations: 239.6 kB / 357.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002908/0.04027, allocations: 4.639 MB / 361.7 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005177/0.04078, allocations: 35.92 kB / 361.7 MB, free: 9.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.04084, allocations: 40 kB / 361.8 MB, free: 9.82 MB / 330.7 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.0006511/0.04149, allocations: 280.8 kB / 362.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.04162, allocations: 95.44 kB / 362.1 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009684/0.04259, allocations: 0.753 MB / 362.9 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.04259, allocations: 12 kB / 362.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.04261, allocations: 7.938 kB / 362.9 MB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.04261, allocations: 3.984 kB / 362.9 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.04526, allocations: 2.28 MB / 365.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.04527, allocations: 0 / 365.2 MB, free: 6.297 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004585/0.04573, allocations: 191.8 kB / 365.4 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000297/0.04602, allocations: 155.3 kB / 365.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.04607, allocations: 31.92 kB / 365.6 MB, free: 5.914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003231/0.0493, allocations: 5.55 MB / 371.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.0493, allocations: 0 / 371.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.05108, allocations: 1.673 MB / 372.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.05138, allocations: 175.3 kB / 373 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.871e-05/0.05145, allocations: 28.06 kB / 373 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.05173, allocations: 31.98 kB / 373 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.05187, allocations: 88.52 kB / 373.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.05191, allocations: 39.97 kB / 373.1 MB, free: 13.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004309/0.05234, allocations: 459.1 kB / 373.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.05234, allocations: 0 / 373.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006784/0.05302, allocations: 260 kB / 373.9 MB, free: 13.15 MB / 346.7 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.00187/0.05489, allocations: 2.245 MB / 376.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.05648, allocations: 1.223 MB / 377.3 MB, free: 9.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.05648, allocations: 0 / 377.3 MB, free: 9.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000706/0.05719, allocations: 0.9361 MB / 378.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006447/0.05783, allocations: 205.9 kB / 378.5 MB, free: 8.414 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00973/0.06756, allocations: 8.104 MB / 386.6 MB, free: 92 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.06793, allocations: 450.6 kB / 387 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004361/0.06837, allocations: 132 kB / 387.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003954/0.06877, allocations: 400.3 kB / 387.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.653e-06/0.06877, allocations: 0 / 387.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.1128, allocations: 23.34 MB / 410.9 MB, free: 8.035 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/7.544, allocations: 3.938 kB / 410.9 MB, free: 8.031 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=1e-05 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 9.437790104188025]