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.001699/0.001699, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002018/0.002018, allocations: 214.8 kB / 24.52 MB, free: 3.91 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.451/1.451, allocations: 230.5 MB / 258.2 MB, free: 7.797 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.00213/0.00213, allocations: 59.91 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2996, allocations: 53.41 MB / 431.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01352/0.3131, allocations: 9.833 MB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008335/0.3214, allocations: 3.79 MB / 445.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.3235, allocations: 43.75 kB / 445.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009269/0.3328, allocations: 8.151 MB / 453.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008052/0.3408, allocations: 4.741 MB / 458.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.3436, allocations: 0.9283 MB / 459.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009678/0.3533, allocations: 5.405 MB / 464.8 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002236/0.3555, allocations: 0.6023 MB / 465.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006061/0.3616, allocations: 2.934 MB / 468.3 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008069/0.3697, allocations: 5.836 MB / 474.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001456/0.3711, allocations: 356 kB / 474.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001667/0.3728, allocations: 404 kB / 474.9 MB, free: 11.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002222/0.375, allocations: 1.888 MB / 476.8 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003379/0.3784, allocations: 2.078 MB / 478.9 MB, free: 7.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009982/0.3884, allocations: 7.522 MB / 486.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.3884, allocations: 0 / 486.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3884, allocations: 0 / 486.4 MB, free: 15.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003482/0.3887, allocations: 3.938 kB / 486.4 MB, free: 15.75 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.01706/0.4058, allocations: 7.964 MB / 494.4 MB, free: 7.703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.4058, allocations: 12.03 kB / 494.4 MB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.104e-05/0.4059, allocations: 52.36 kB / 494.4 MB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001023/0.407, allocations: 291.7 kB / 494.7 MB, free: 7.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/0.4096, allocations: 0.9519 MB / 495.7 MB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006589/0.4161, allocations: 3.226 MB / 498.9 MB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.4163, allocations: 160.2 kB / 499.1 MB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000495/0.4168, allocations: 208 kB / 499.3 MB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004658/0.4215, allocations: 2.222 MB / 0.4897 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.348e-05/0.4216, allocations: 11.94 kB / 0.4897 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.4218, allocations: 80 kB / 0.4898 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-05/0.4218, allocations: 55.94 kB / 0.4899 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004417/0.4262, allocations: 1.856 MB / 0.4917 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0194/0.4456, allocations: 7.876 MB / 0.4994 GB, free: 6.418 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004468/0.4501, allocations: 2.021 MB / 0.5013 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003092/0.4532, allocations: 1.28 MB / 0.5026 GB, free: 3.086 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001848/0.4534, allocations: 34.3 kB / 0.5026 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00254/0.4559, allocations: 1.254 MB / 0.5039 GB, free: 1.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 6.262e-06/0.4559, allocations: 0 / 0.5039 GB, free: 1.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.07549/0.5314, allocations: 22.23 MB / 0.5256 GB, free: 11.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2565/0.7879, allocations: 13.19 MB / 0.5384 GB, free: 95.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02262/0.8105, allocations: 15.05 MB / 0.5531 GB, free: 89.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006368/0.8111, allocations: 85.7 kB / 0.5532 GB, free: 89.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003387/0.8145, allocations: 3.801 MB / 0.5569 GB, free: 86.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/0.8157, allocations: 1.284 MB / 0.5582 GB, free: 86.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001012/0.8167, allocations: 0.5196 MB / 0.5587 GB, free: 85.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.149e-05/0.8168, allocations: 308.5 kB / 0.559 GB, free: 85.51 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/0.8188, allocations: 1.233 MB / 0.5602 GB, free: 84.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00236/0.8212, allocations: 1.731 MB / 0.5619 GB, free: 82.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004553/0.8257, allocations: 2.976 MB / 0.5648 GB, free: 79.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/0.8258, allocations: 0.8125 kB / 0.5648 GB, free: 79.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01139/0.8371, allocations: 5.205 MB / 0.5699 GB, free: 75.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.457e-05/0.8372, allocations: 8 kB / 0.5699 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.8372, allocations: 4 kB / 0.5699 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00546/0.8427, allocations: 1.411 MB / 0.5713 GB, free: 73.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002982/0.8456, allocations: 0.5305 MB / 0.5718 GB, free: 73.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02377/0.8694, allocations: 22.78 MB / 0.594 GB, free: 49.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/0.873, allocations: 118.5 kB / 0.5941 GB, free: 49.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007059/0.8738, allocations: 116 kB / 0.5943 GB, free: 49.19 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.003782/0.8775, allocations: 2.19 MB / 0.5964 GB, free: 46.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001376/0.8789, allocations: 0.8692 MB / 0.5972 GB, free: 46.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.8901, allocations: 5.263 MB / 0.6024 GB, free: 40.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/0.8902, allocations: 36 kB / 0.6024 GB, free: 40.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/0.8902, allocations: 11.05 kB / 0.6024 GB, free: 40.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-05/0.8903, allocations: 15.94 kB / 0.6024 GB, free: 40.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02038/0.9106, allocations: 10.16 MB / 0.6124 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.799e-05/0.9107, allocations: 4.094 kB / 0.6124 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/0.9133, allocations: 455.4 kB / 0.6128 GB, free: 30.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005589/0.9189, allocations: 1.346 MB / 0.6141 GB, free: 28.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006407/0.9195, allocations: 83.97 kB / 0.6142 GB, free: 28.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/0.9409, allocations: 20.68 MB / 0.6344 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02499/0.9659, allocations: 11.51 MB / 0.6456 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01592/0.9818, allocations: 6.933 MB / 0.6524 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/0.9835, allocations: 0.7387 MB / 0.6531 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/0.985, allocations: 68 kB / 0.6532 GB, free: 3.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/0.9882, allocations: 99.95 kB / 0.6533 GB, free: 3.332 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001209/0.9894, allocations: 287.1 kB / 0.6536 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003387/0.9898, allocations: 99.97 kB / 0.6537 GB, free: 2.953 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01709/1.007, allocations: 11.23 MB / 0.6646 GB, free: 7.746 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.007, allocations: 0 / 0.6646 GB, free: 7.746 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005755/1.013, allocations: 1.104 MB / 0.6657 GB, free: 6.645 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 (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.02046/1.033, allocations: 7.936 MB / 0.6734 GB, free: 14.78 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/1.044, allocations: 4.592 MB / 0.6779 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/1.044, allocations: 0 / 0.6779 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00687/1.051, allocations: 3.137 MB / 0.681 GB, free: 6.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005694/1.057, allocations: 0.5599 MB / 0.6815 GB, free: 6.258 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3638/1.421, allocations: 56.35 MB / 0.7366 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005354/1.426, allocations: 3.566 MB / 0.7401 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001985/1.428, allocations: 318.1 kB / 0.7404 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004265/1.432, allocations: 3.281 MB / 0.7436 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.974e-06/1.432, allocations: 0 / 0.7436 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2242/1.656, allocations: 148.2 MB / 0.8883 GB, free: 38.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 50.98/52.64, allocations: 22.05 kB / 0.8883 GB, free: 38.33 MB / 0.5294 GB " [Timeout remaining time 607] (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: 57.76230422093067]