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.001285/0.001285, allocations: 114 kB / 20.43 MB, free: 1.457 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.001426/0.001426, allocations: 214 kB / 23.74 MB, free: 4.672 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.46/1.46, allocations: 230.5 MB / 257.4 MB, free: 8.004 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="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 0.002089/0.002089, allocations: 59.91 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2964, allocations: 53.41 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01406/0.3105, allocations: 11.48 MB / 442.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008161/0.3187, allocations: 3.892 MB / 446.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.321, allocations: 51.69 kB / 446.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008989/0.33, allocations: 8.144 MB / 454.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007363/0.3373, allocations: 4.742 MB / 459.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.3402, allocations: 0.9245 MB / 460.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007792/0.348, allocations: 5.404 MB / 465.8 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.3494, allocations: 0.5984 MB / 466.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005498/0.3549, allocations: 2.934 MB / 469.3 MB, free: 416 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009059/0.364, allocations: 5.84 MB / 475.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001646/0.3656, allocations: 356 kB / 475.5 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.3676, allocations: 404 kB / 475.9 MB, free: 9.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.37, allocations: 1.888 MB / 477.8 MB, free: 7.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005111/0.3752, allocations: 2.85 MB / 480.7 MB, free: 5.031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.3856, allocations: 7.427 MB / 488.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3856, allocations: 0 / 488.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3856, allocations: 0 / 488.1 MB, free: 13.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003039/0.3859, allocations: 0 / 488.1 MB, free: 13.57 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.01653/0.4024, allocations: 7.964 MB / 496.1 MB, free: 5.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.4025, allocations: 12.03 kB / 496.1 MB, free: 5.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006249/0.4031, allocations: 295.7 kB / 496.4 MB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002179/0.4053, allocations: 0.944 MB / 497.3 MB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005329/0.4106, allocations: 3.237 MB / 0.4888 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.4108, allocations: 156.2 kB / 0.489 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003436/0.4111, allocations: 211.9 kB / 0.4892 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003915/0.415, allocations: 2.093 MB / 0.4912 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.375e-05/0.4151, allocations: 7.953 kB / 0.4912 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.4153, allocations: 84 kB / 0.4913 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.721e-05/0.4153, allocations: 55.98 kB / 0.4913 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003573/0.4189, allocations: 1.841 MB / 0.4931 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01583/0.4347, allocations: 8.876 MB / 0.5018 GB, free: 3.375 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003731/0.4385, allocations: 2.022 MB / 0.5038 GB, free: 1.328 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002637/0.4411, allocations: 1.278 MB / 0.505 GB, free: 48 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001457/0.4412, allocations: 38.28 kB / 0.5051 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002145/0.4434, allocations: 1.132 MB / 0.5062 GB, free: 14.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=246): time 4.538e-06/0.4434, allocations: 0 / 0.5062 GB, free: 14.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=371): time 0.067/0.5104, allocations: 22.21 MB / 0.5279 GB, free: 8.469 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2706/0.781, allocations: 13.44 MB / 0.541 GB, free: 94.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01589/0.7969, allocations: 15.04 MB / 0.5557 GB, free: 87.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006155/0.7975, allocations: 89.7 kB / 0.5558 GB, free: 87.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/0.8002, allocations: 3.798 MB / 0.5595 GB, free: 84.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001253/0.8014, allocations: 1.281 MB / 0.5607 GB, free: 84.33 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008288/0.8023, allocations: 0.5215 MB / 0.5612 GB, free: 83.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.8023, allocations: 305.9 kB / 0.5615 GB, free: 83.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.8044, allocations: 1.225 MB / 0.5627 GB, free: 82.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002119/0.8065, allocations: 1.604 MB / 0.5643 GB, free: 80.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003998/0.8105, allocations: 2.971 MB / 0.5672 GB, free: 77.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.8105, allocations: 3.984 kB / 0.5672 GB, free: 77.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01043/0.8209, allocations: 5.194 MB / 0.5723 GB, free: 72.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.821, allocations: 8 kB / 0.5723 GB, free: 72.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.821, allocations: 7.984 kB / 0.5723 GB, free: 72.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005122/0.8261, allocations: 1.415 MB / 0.5737 GB, free: 71.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/0.8286, allocations: 0.5304 MB / 0.5742 GB, free: 70.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02289/0.8515, allocations: 23.12 MB / 0.5968 GB, free: 46.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003668/0.8552, allocations: 111.9 kB / 0.5969 GB, free: 46.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003536/0.8556, allocations: 115.9 kB / 0.597 GB, free: 46.62 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.003295/0.8588, allocations: 2.205 MB / 0.5991 GB, free: 44.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/0.8601, allocations: 0.873 MB / 0.6 GB, free: 43.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/0.8707, allocations: 5.232 MB / 0.6051 GB, free: 38.26 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.8707, allocations: 36 kB / 0.6051 GB, free: 38.22 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/0.8707, allocations: 7.062 kB / 0.6051 GB, free: 38.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.98e-05/0.8708, allocations: 19.92 kB / 0.6051 GB, free: 38.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01701/0.8878, allocations: 10.94 MB / 0.6158 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.8878, allocations: 8.094 kB / 0.6158 GB, free: 27.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/0.89, allocations: 447.4 kB / 0.6163 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00497/0.895, allocations: 1.346 MB / 0.6176 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004389/0.8954, allocations: 75.97 kB / 0.6176 GB, free: 25.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01972/0.9151, allocations: 21.01 MB / 0.6382 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02497/0.9401, allocations: 11.77 MB / 0.6497 GB, free: 7.281 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/0.9548, allocations: 6.901 MB / 0.6564 GB, free: 288 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/0.9567, allocations: 0.7326 MB / 0.6571 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000745/0.9575, allocations: 71.95 kB / 0.6572 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00207/0.9595, allocations: 97.7 kB / 0.6573 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007144/0.9602, allocations: 287 kB / 0.6576 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002086/0.9605, allocations: 99.97 kB / 0.6577 GB, free: 15 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0141/0.9746, allocations: 11.22 MB / 0.6686 GB, free: 3.801 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9746, allocations: 4 kB / 0.6686 GB, free: 3.797 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004795/0.9793, allocations: 1.096 MB / 0.6697 GB, free: 2.703 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.01658/0.9959, allocations: 7.876 MB / 0.6774 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009063/1.005, allocations: 4.587 MB / 0.6819 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/1.005, allocations: 0 / 0.6819 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00556/1.011, allocations: 3.125 MB / 0.6849 GB, free: 2.945 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/1.014, allocations: 0.5596 MB / 0.6855 GB, free: 2.387 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.358/1.372, allocations: 56.31 MB / 0.7404 GB, free: 169 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/1.376, allocations: 4.047 MB / 0.7444 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001742/1.378, allocations: 315.8 kB / 0.7447 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002903/1.381, allocations: 3.28 MB / 0.7479 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.403e-06/1.381, allocations: 0 / 0.7479 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.256/1.637, allocations: 148.1 MB / 0.8925 GB, free: 33.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.42/93.05, allocations: 0 / 0.8925 GB, free: 33.9 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: 97.8319868890103]