Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.000928/0.000928, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001653/0.001653, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9221/0.9221, allocations: 177 MB / 204.1 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.555e-06/2.555e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.792e-05, allocations: 3.125 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008295/0.008323, allocations: 9.871 MB / 334.4 MB, free: 5.965 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006153/0.01448, allocations: 3.813 MB / 338.2 MB, free: 2.145 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.01553, allocations: 47.75 kB / 338.2 MB, free: 2.098 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005449/0.02098, allocations: 8.165 MB / 346.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003704/0.02469, allocations: 4.782 MB / 351.2 MB, free: 5.117 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.0261, allocations: 0.9203 MB / 352.1 MB, free: 4.195 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004095/0.0302, allocations: 5.527 MB / 357.6 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006633/0.03086, allocations: 0.5554 MB / 358.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00317/0.03403, allocations: 3.587 MB / 361.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003663/0.03769, allocations: 5.484 MB / 367.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006957/0.03839, allocations: 359.9 kB / 367.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005151/0.0389, allocations: 407.9 kB / 368 MB, free: 4.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009692/0.03987, allocations: 1.927 MB / 369.9 MB, free: 2.289 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.04099, allocations: 1.435 MB / 371.4 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004947/0.04594, allocations: 7.175 MB / 378.5 MB, free: 9.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.04595, allocations: 0 / 378.5 MB, free: 9.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.04595, allocations: 0 / 378.5 MB, free: 9.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.772e-05/0.04605, allocations: 3.938 kB / 378.6 MB, free: 9.645 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.007189/0.05324, allocations: 7.854 MB / 386.4 MB, free: 1.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.05329, allocations: 11.98 kB / 386.4 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002669/0.05356, allocations: 291.7 kB / 386.7 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009182/0.05448, allocations: 0.9518 MB / 387.7 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003095/0.05757, allocations: 3.229 MB / 390.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.614e-05/0.05767, allocations: 160.3 kB / 391 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.05787, allocations: 208 kB / 391.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002567/0.06044, allocations: 2.226 MB / 393.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.458e-05/0.06049, allocations: 15.92 kB / 393.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.06062, allocations: 87.94 kB / 393.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.149e-05/0.06065, allocations: 56 kB / 393.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.06302, allocations: 1.837 MB / 395.5 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009023/0.07204, allocations: 7.866 MB / 403.3 MB, free: 488 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.07457, allocations: 2.024 MB / 405.4 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.07612, allocations: 1.28 MB / 406.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.959e-05/0.07621, allocations: 34.3 kB / 406.7 MB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001275/0.07748, allocations: 1.262 MB / 407.9 MB, free: 11.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 3.367e-06/0.07749, allocations: 0 / 407.9 MB, free: 11.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=371): time 0.0337/0.1112, allocations: 22.21 MB / 430.1 MB, free: 5.398 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01694/0.1281, allocations: 13.18 MB / 443.3 MB, free: 7.891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2432/0.3713, allocations: 15.07 MB / 458.4 MB, free: 105.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007866/0.3721, allocations: 89.56 kB / 458.5 MB, free: 105.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00374/0.3758, allocations: 3.794 MB / 462.3 MB, free: 103.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/0.3776, allocations: 1.265 MB / 463.5 MB, free: 103 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/0.3789, allocations: 0.523 MB / 464.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.108e-05/0.379, allocations: 304.9 kB / 464.4 MB, free: 102.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/0.3812, allocations: 1.238 MB / 465.6 MB, free: 101.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/0.3833, allocations: 1.733 MB / 467.3 MB, free: 100.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/0.3871, allocations: 2.971 MB / 470.3 MB, free: 99.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.013e-05/0.3872, allocations: 3.812 kB / 470.3 MB, free: 99.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.009048/0.3962, allocations: 5.21 MB / 475.5 MB, free: 95.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.057e-05/0.3963, allocations: 8 kB / 475.5 MB, free: 95.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/0.3963, allocations: 7.938 kB / 475.5 MB, free: 95.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003509/0.3998, allocations: 1.403 MB / 476.9 MB, free: 94.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002072/0.4019, allocations: 0.526 MB / 477.5 MB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01782/0.4197, allocations: 22.77 MB / 0.4885 GB, free: 70.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/0.4223, allocations: 109 kB / 0.4886 GB, free: 70.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002561/0.4225, allocations: 116 kB / 0.4887 GB, free: 70.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 304 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.00272/0.4252, allocations: 2.197 MB / 0.4909 GB, free: 68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000809/0.4261, allocations: 0.8775 MB / 0.4917 GB, free: 67.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00655/0.4326, allocations: 5.254 MB / 0.4969 GB, free: 61.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.4326, allocations: 36 kB / 0.4969 GB, free: 61.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/0.4327, allocations: 4 kB / 0.4969 GB, free: 61.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.4327, allocations: 19.94 kB / 0.4969 GB, free: 61.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01327/0.4459, allocations: 10.18 MB / 0.5068 GB, free: 51.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.4459, allocations: 0 / 0.5068 GB, free: 51.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.4472, allocations: 459.5 kB / 0.5073 GB, free: 51.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/0.45, allocations: 1.351 MB / 0.5086 GB, free: 49.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002993/0.4503, allocations: 71.98 kB / 0.5087 GB, free: 49.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/0.465, allocations: 20.66 MB / 0.5289 GB, free: 28.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01388/0.4789, allocations: 11.52 MB / 0.5401 GB, free: 16.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00983/0.4887, allocations: 6.924 MB / 0.5469 GB, free: 9.277 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/0.4906, allocations: 0.7323 MB / 0.5476 GB, free: 8.543 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008535/0.4914, allocations: 79.88 kB / 0.5477 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/0.4929, allocations: 95.95 kB / 0.5477 GB, free: 8.371 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006639/0.4936, allocations: 283.2 kB / 0.548 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.4937, allocations: 95.97 kB / 0.5481 GB, free: 7.996 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01027/0.504, allocations: 11.23 MB / 0.5591 GB, free: 12.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.504, allocations: 0 / 0.5591 GB, free: 12.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005261/0.5092, allocations: 1.096 MB / 0.5601 GB, free: 11.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01203/0.5213, allocations: 7.928 MB / 0.5679 GB, free: 3.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007135/0.5284, allocations: 4.596 MB / 0.5724 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/0.5284, allocations: 0 / 0.5724 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004568/0.533, allocations: 3.133 MB / 0.5754 GB, free: 11.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/0.5364, allocations: 0.5762 MB / 0.576 GB, free: 11.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2789/0.8153, allocations: 56.33 MB / 0.631 GB, free: 148.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002911/0.8183, allocations: 3.571 MB / 0.6345 GB, free: 148 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00177/0.82, allocations: 313.4 kB / 0.6348 GB, free: 148 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002696/0.8227, allocations: 3.287 MB / 0.638 GB, free: 145.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.623e-06/0.8227, allocations: 0 / 0.638 GB, free: 145.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2033/1.026, allocations: 146.5 MB / 0.7811 GB, free: 7.617 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.37/22.39, allocations: 12 kB / 0.7811 GB, free: 7.605 MB / 474.7 MB " [Timeout remaining time 637] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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: 25.46659965440631]