Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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.001288/0.001288, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 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.00141/0.00141, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 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 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2926, allocations: 53.37 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01458/0.3072, allocations: 11.47 MB / 442.6 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008268/0.3155, allocations: 3.893 MB / 446.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002437/0.3179, allocations: 47.75 kB / 446.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009197/0.3271, allocations: 8.147 MB / 454.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00828/0.3354, allocations: 4.74 MB / 459.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.3386, allocations: 0.9321 MB / 460.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009597/0.3482, allocations: 5.399 MB / 465.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.35, allocations: 0.6022 MB / 466.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005823/0.3558, allocations: 2.942 MB / 469.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009315/0.3651, allocations: 5.828 MB / 475.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001443/0.3665, allocations: 356 kB / 475.5 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.3681, allocations: 404 kB / 475.9 MB, free: 9.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.3703, allocations: 1.892 MB / 477.8 MB, free: 8.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003721/0.3741, allocations: 2.846 MB / 480.6 MB, free: 5.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009568/0.3836, allocations: 7.424 MB / 488 MB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3836, allocations: 0 / 488 MB, free: 13.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3836, allocations: 0 / 488 MB, free: 13.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003326/0.384, allocations: 0 / 488 MB, free: 13.73 MB / 398.1 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.0161/0.4001, allocations: 7.96 MB / 496 MB, free: 5.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.4001, allocations: 12.03 kB / 496 MB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004825/0.4006, allocations: 287.7 kB / 496.3 MB, free: 5.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/0.4026, allocations: 0.9557 MB / 497.3 MB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005438/0.408, allocations: 3.233 MB / 0.4888 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.4082, allocations: 160.2 kB / 0.4889 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/0.4086, allocations: 208 kB / 0.4891 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004284/0.4128, allocations: 2.093 MB / 0.4912 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.279e-05/0.4129, allocations: 15.95 kB / 0.4912 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/0.4131, allocations: 80 kB / 0.4912 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.901e-05/0.4131, allocations: 52 kB / 0.4913 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003913/0.4171, allocations: 1.848 MB / 0.4931 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01789/0.4349, allocations: 8.872 MB / 0.5018 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004132/0.4391, allocations: 2.019 MB / 0.5037 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002684/0.4418, allocations: 1.276 MB / 0.505 GB, free: 216 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000156/0.4419, allocations: 38.28 kB / 0.505 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002126/0.444, allocations: 1.128 MB / 0.5061 GB, free: 15.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=246): time 4.178e-06/0.444, allocations: 0 / 0.5061 GB, free: 15.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=371): time 0.06811/0.5122, allocations: 22.22 MB / 0.5278 GB, free: 8.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.307/0.8191, allocations: 13.44 MB / 0.5409 GB, free: 93.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01635/0.8355, allocations: 15.04 MB / 0.5556 GB, free: 88.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006049/0.8361, allocations: 85.5 kB / 0.5557 GB, free: 88.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002631/0.8387, allocations: 3.795 MB / 0.5594 GB, free: 84.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001107/0.8398, allocations: 1.292 MB / 0.5607 GB, free: 84.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007687/0.8406, allocations: 0.5202 MB / 0.5612 GB, free: 84.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.058e-05/0.8406, allocations: 301.9 kB / 0.5615 GB, free: 83.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.8426, allocations: 1.232 MB / 0.5627 GB, free: 82.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.8447, allocations: 1.598 MB / 0.5642 GB, free: 81.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004027/0.8487, allocations: 2.971 MB / 0.5671 GB, free: 78.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.8487, allocations: 7.625 kB / 0.5671 GB, free: 78.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.009729/0.8584, allocations: 5.19 MB / 0.5722 GB, free: 73.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.8585, allocations: 11.94 kB / 0.5722 GB, free: 73.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/0.8585, allocations: 8 kB / 0.5722 GB, free: 73.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004994/0.8635, allocations: 1.402 MB / 0.5736 GB, free: 71.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.866, allocations: 0.5379 MB / 0.5741 GB, free: 71.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02254/0.8885, allocations: 23.13 MB / 0.5967 GB, free: 47.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/0.892, allocations: 112.9 kB / 0.5968 GB, free: 47.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/0.8924, allocations: 119.9 kB / 0.5969 GB, free: 46.93 MB / 446.1 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.003004/0.8955, allocations: 2.199 MB / 0.5991 GB, free: 44.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009527/0.8964, allocations: 0.8691 MB / 0.5999 GB, free: 43.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009873/0.9063, allocations: 5.23 MB / 0.605 GB, free: 38.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/0.9063, allocations: 36 kB / 0.6051 GB, free: 38.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.9063, allocations: 8 kB / 0.6051 GB, free: 38.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/0.9064, allocations: 19.92 kB / 0.6051 GB, free: 38.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.9241, allocations: 10.94 MB / 0.6158 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/0.9241, allocations: 3.719 kB / 0.6158 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/0.9264, allocations: 451.5 kB / 0.6162 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005092/0.9315, allocations: 1.35 MB / 0.6175 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003387/0.9319, allocations: 75.97 kB / 0.6176 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02021/0.9521, allocations: 21.01 MB / 0.6381 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0262/0.9783, allocations: 11.76 MB / 0.6496 GB, free: 7.594 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01729/0.9956, allocations: 6.897 MB / 0.6564 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002092/0.9976, allocations: 0.7345 MB / 0.6571 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001193/0.9988, allocations: 71.94 kB / 0.6571 GB, free: 15.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002766/1.002, allocations: 95.95 kB / 0.6572 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009145/1.003, allocations: 291 kB / 0.6575 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003267/1.003, allocations: 91.98 kB / 0.6576 GB, free: 15.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01832/1.021, allocations: 11.23 MB / 0.6686 GB, free: 4.109 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.021, allocations: 0 / 0.6686 GB, free: 4.109 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005961/1.027, allocations: 1.092 MB / 0.6696 GB, free: 3.02 MB / 478.1 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 (257): * Single equations (assignments): 246 * 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.01944/1.047, allocations: 7.878 MB / 0.6773 GB, free: 11.22 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009869/1.056, allocations: 4.592 MB / 0.6818 GB, free: 6.508 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/1.056, allocations: 0 / 0.6818 GB, free: 6.508 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006117/1.063, allocations: 3.128 MB / 0.6849 GB, free: 3.273 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004395/1.067, allocations: 0.5737 MB / 0.6854 GB, free: 2.699 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3802/1.447, allocations: 56.31 MB / 0.7404 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003822/1.451, allocations: 4.048 MB / 0.7444 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001738/1.453, allocations: 319.9 kB / 0.7447 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003103/1.456, allocations: 3.277 MB / 0.7479 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/1.456, allocations: 0 / 0.7479 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2382/1.694, allocations: 148.1 MB / 0.8925 GB, free: 34.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 92.97/94.67, allocations: 3.266 kB / 0.8925 GB, free: 34.57 MB / 0.5294 GB " [Timeout remaining time 565] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 99.66792939882725]