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.001278/0.001278, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001667/0.001667, allocations: 220.5 kB / 24.53 MB, free: 4.008 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.472/1.472, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.89 kB / 378.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2762, allocations: 53.4 MB / 432 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0156/0.2918, allocations: 11.48 MB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009595/0.3014, allocations: 3.888 MB / 447.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002737/0.3042, allocations: 47.75 kB / 447.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009556/0.3137, allocations: 8.148 MB / 455.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008258/0.322, allocations: 4.74 MB / 460.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003063/0.325, allocations: 0.9167 MB / 461.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008737/0.3338, allocations: 5.408 MB / 466.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.3356, allocations: 0.6023 MB / 467.2 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005305/0.3409, allocations: 2.942 MB / 470.1 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008651/0.3496, allocations: 5.832 MB / 476 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001569/0.3511, allocations: 356 kB / 476.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.3528, allocations: 400 kB / 476.7 MB, free: 9.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002387/0.3552, allocations: 1.892 MB / 478.6 MB, free: 8.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006143/0.3614, allocations: 2.846 MB / 481.4 MB, free: 5.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01235/0.3737, allocations: 7.432 MB / 488.9 MB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.3737, allocations: 0 / 488.9 MB, free: 13.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3737, allocations: 0 / 488.9 MB, free: 13.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004324/0.3742, allocations: 0 / 488.9 MB, free: 13.7 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.01784/0.392, allocations: 7.964 MB / 496.8 MB, free: 5.641 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.392, allocations: 8.031 kB / 496.8 MB, free: 5.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.688e-05/0.3921, allocations: 56.36 kB / 496.9 MB, free: 5.574 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005976/0.3927, allocations: 291.7 kB / 497.2 MB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002115/0.3948, allocations: 0.9519 MB / 498.1 MB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005585/0.4004, allocations: 3.226 MB / 0.4896 GB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.4006, allocations: 160.1 kB / 0.4898 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003896/0.401, allocations: 208 kB / 0.49 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004267/0.4052, allocations: 2.096 MB / 0.492 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.066e-05/0.4053, allocations: 7.953 kB / 0.492 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.4055, allocations: 84 kB / 0.4921 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.625e-05/0.4055, allocations: 52 kB / 0.4922 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003889/0.4094, allocations: 1.848 MB / 0.494 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01813/0.4276, allocations: 8.872 MB / 0.5026 GB, free: 3.445 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004259/0.4318, allocations: 2.026 MB / 0.5046 GB, free: 1.395 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002948/0.4348, allocations: 1.276 MB / 0.5058 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.4349, allocations: 38.28 kB / 0.5059 GB, free: 76 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002212/0.4371, allocations: 1.136 MB / 0.507 GB, free: 14.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=246): time 4.518e-06/0.4371, allocations: 0 / 0.507 GB, free: 14.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=371): time 0.07269/0.5098, allocations: 22.21 MB / 0.5287 GB, free: 8.543 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2698/0.7796, allocations: 13.45 MB / 0.5418 GB, free: 93.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01982/0.7994, allocations: 15.04 MB / 0.5565 GB, free: 88.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006227/0.8, allocations: 92.61 kB / 0.5566 GB, free: 88.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003109/0.8031, allocations: 3.789 MB / 0.5603 GB, free: 84.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/0.8044, allocations: 1.29 MB / 0.5616 GB, free: 84.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009281/0.8053, allocations: 0.5193 MB / 0.5621 GB, free: 84.03 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.395e-05/0.8054, allocations: 301.9 kB / 0.5623 GB, free: 83.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.8075, allocations: 1.229 MB / 0.5635 GB, free: 82.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/0.8099, allocations: 1.608 MB / 0.5651 GB, free: 81.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/0.8143, allocations: 2.967 MB / 0.568 GB, free: 78.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/0.8143, allocations: 0 / 0.568 GB, free: 78.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01051/0.8249, allocations: 5.196 MB / 0.5731 GB, free: 73.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.8249, allocations: 8 kB / 0.5731 GB, free: 73.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.8249, allocations: 4 kB / 0.5731 GB, free: 73.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00533/0.8302, allocations: 1.413 MB / 0.5745 GB, free: 71.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002883/0.8331, allocations: 0.5343 MB / 0.575 GB, free: 71.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02325/0.8564, allocations: 23.12 MB / 0.5976 GB, free: 47.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.8605, allocations: 114.9 kB / 0.5977 GB, free: 47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007341/0.8612, allocations: 111.9 kB / 0.5978 GB, free: 46.89 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.004195/0.8654, allocations: 2.197 MB / 0.5999 GB, free: 44.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/0.8669, allocations: 0.877 MB / 0.6008 GB, free: 43.81 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/0.8783, allocations: 5.23 MB / 0.6059 GB, free: 38.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/0.8783, allocations: 40 kB / 0.6059 GB, free: 38.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/0.8783, allocations: 4 kB / 0.606 GB, free: 38.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.292e-05/0.8784, allocations: 19.94 kB / 0.606 GB, free: 38.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/0.8995, allocations: 10.94 MB / 0.6167 GB, free: 27.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.558e-05/0.8996, allocations: 0 / 0.6167 GB, free: 27.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002337/0.9019, allocations: 449.7 kB / 0.6171 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005145/0.907, allocations: 1.354 MB / 0.6184 GB, free: 25.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005813/0.9076, allocations: 75.97 kB / 0.6185 GB, free: 25.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/0.9298, allocations: 21 MB / 0.639 GB, free: 3.574 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02768/0.9575, allocations: 11.77 MB / 0.6505 GB, free: 7.562 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0202/0.9777, allocations: 6.904 MB / 0.6572 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002219/0.9799, allocations: 0.7384 MB / 0.6579 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001673/0.9816, allocations: 71.95 kB / 0.658 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003166/0.9847, allocations: 91.95 kB / 0.6581 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001132/0.9859, allocations: 298.7 kB / 0.6584 GB, free: 15.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005047/0.9864, allocations: 91.97 kB / 0.6585 GB, free: 15.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01837/1.005, allocations: 11.22 MB / 0.6694 GB, free: 4.078 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.005, allocations: 0 / 0.6694 GB, free: 4.078 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005711/1.01, allocations: 1.1 MB / 0.6705 GB, free: 2.98 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.01936/1.03, allocations: 7.869 MB / 0.6782 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01138/1.041, allocations: 4.585 MB / 0.6827 GB, free: 6.461 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/1.041, allocations: 3.938 kB / 0.6827 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006378/1.048, allocations: 3.125 MB / 0.6857 GB, free: 3.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/1.052, allocations: 0.5611 MB / 0.6863 GB, free: 2.664 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3452/1.397, allocations: 56.31 MB / 0.7413 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004216/1.401, allocations: 4.048 MB / 0.7452 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001694/1.403, allocations: 320.2 kB / 0.7455 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002896/1.406, allocations: 3.277 MB / 0.7487 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.363e-06/1.406, allocations: 0 / 0.7487 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2323/1.638, allocations: 148.1 MB / 0.8933 GB, free: 34.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.17/92.81, allocations: 11.62 kB / 0.8933 GB, free: 34.47 MB / 0.5294 GB " [Timeout remaining time 567] (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/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_trunk_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: 98.45006408001063]