Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001174, allocations: 99.02 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 55.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08799, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01225/0.1003, allocations: 10.98 MB / 338.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007255/0.1076, allocations: 3.539 MB / 341.9 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.1095, allocations: 39.81 kB / 341.9 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008891/0.1184, allocations: 8.14 MB / 350.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008587/0.127, allocations: 4.624 MB / 354.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002746/0.1298, allocations: 0.9245 MB / 355.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006557/0.1364, allocations: 5.301 MB / 360.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.138, allocations: 0.8865 MB / 361.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004416/0.1424, allocations: 2.853 MB / 364.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006051/0.1485, allocations: 5.119 MB / 369.8 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001135/0.1497, allocations: 352 kB / 370.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.151, allocations: 388 kB / 370.5 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00182/0.1529, allocations: 1.873 MB / 372.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003627/0.1565, allocations: 2.784 MB / 375.2 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1463/0.3028, allocations: 7.141 MB / 382.3 MB, free: 34.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3029, allocations: 1.375 kB / 382.3 MB, free: 34.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3029, allocations: 3.719 kB / 382.3 MB, free: 34.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.3031, allocations: 0 / 382.3 MB, free: 34.97 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01433/0.3174, allocations: 7.644 MB / 390 MB, free: 30.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3175, allocations: 10.88 kB / 390 MB, free: 30.99 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003597/0.3178, allocations: 295 kB / 390.3 MB, free: 30.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.319, allocations: 0.8432 MB / 391.1 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003772/0.3228, allocations: 3.149 MB / 394.2 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.323, allocations: 161.6 kB / 394.4 MB, free: 28.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003124/0.3233, allocations: 209.6 kB / 394.6 MB, free: 28.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/0.3269, allocations: 2.116 MB / 396.7 MB, free: 28.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/0.327, allocations: 4.641 kB / 396.7 MB, free: 28.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/0.3271, allocations: 82.69 kB / 396.8 MB, free: 28.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.091e-05/0.3272, allocations: 50.09 kB / 396.9 MB, free: 28.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003616/0.3308, allocations: 1.903 MB / 398.8 MB, free: 28.06 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/0.3441, allocations: 8.945 MB / 407.7 MB, free: 22.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003282/0.3474, allocations: 2.333 MB / 410 MB, free: 21.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002287/0.3497, allocations: 1.382 MB / 411.4 MB, free: 20.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.3498, allocations: 39.39 kB / 411.5 MB, free: 20.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001789/0.3516, allocations: 1.159 MB / 412.6 MB, free: 19.15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.498e-06/0.3516, allocations: 0 / 412.6 MB, free: 19.15 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06076/0.4124, allocations: 22.82 MB / 435.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03009/0.4425, allocations: 13.62 MB / 449.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0167/0.4593, allocations: 14.89 MB / 464 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006947/0.46, allocations: 86.55 kB / 464 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003546/0.4636, allocations: 3.732 MB / 467.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00159/0.4652, allocations: 1.21 MB / 469 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.4663, allocations: 0.5155 MB / 469.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.4664, allocations: 301.1 kB / 469.8 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.4689, allocations: 1.256 MB / 471 MB, free: 8.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002722/0.4717, allocations: 1.622 MB / 472.7 MB, free: 6.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005162/0.4768, allocations: 2.997 MB / 475.7 MB, free: 3.605 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.4769, allocations: 0 / 475.7 MB, free: 3.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01112/0.488, allocations: 5.213 MB / 480.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.488, allocations: 8 kB / 480.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.4881, allocations: 4 kB / 480.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005399/0.4935, allocations: 1.4 MB / 482.3 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.4961, allocations: 0.5327 MB / 482.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02899/0.5251, allocations: 23.98 MB / 0.4949 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003421/0.5286, allocations: 135.8 kB / 0.4951 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/0.5289, allocations: 112 kB / 0.4952 GB, free: 3.125 MB / 398.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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.003296/0.5322, allocations: 2.186 MB / 0.4973 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/0.5334, allocations: 0.8195 MB / 0.4981 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/0.5446, allocations: 5.215 MB / 0.5032 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/0.5447, allocations: 36 kB / 0.5032 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.5447, allocations: 8 kB / 0.5032 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.764e-05/0.5447, allocations: 15.94 kB / 0.5032 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01951/0.5643, allocations: 11.09 MB / 0.5141 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/0.5643, allocations: 1.125 kB / 0.5141 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002457/0.5668, allocations: 459.2 kB / 0.5145 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005361/0.5722, allocations: 1.345 MB / 0.5158 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003044/0.5725, allocations: 75.97 kB / 0.5159 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1708/0.7432, allocations: 21.87 MB / 0.5373 GB, free: 143.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02265/0.7659, allocations: 11.93 MB / 0.5489 GB, free: 136.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/0.7789, allocations: 6.943 MB / 0.5557 GB, free: 133.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.7802, allocations: 0.7491 MB / 0.5564 GB, free: 133.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006887/0.7809, allocations: 74.22 kB / 0.5565 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002104/0.783, allocations: 111.1 kB / 0.5566 GB, free: 133.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006248/0.7836, allocations: 266.2 kB / 0.5569 GB, free: 133.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001894/0.7838, allocations: 102.6 kB / 0.557 GB, free: 133.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.008911/0.7927, allocations: 11.12 MB / 0.5678 GB, free: 125.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7928, allocations: 0 / 0.5678 GB, free: 125.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004143/0.7969, allocations: 1.077 MB / 0.5689 GB, free: 124.5 MB / 430.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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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.01311/0.81, allocations: 7.919 MB / 0.5766 GB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01027/0.8203, allocations: 4.922 MB / 0.5814 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.8204, allocations: 0 / 0.5814 GB, free: 111.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004099/0.8245, allocations: 3.298 MB / 0.5846 GB, free: 108.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/0.8278, allocations: 0.5376 MB / 0.5852 GB, free: 107.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08743/0.9152, allocations: 88.1 MB / 0.6712 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004383/0.9196, allocations: 4.014 MB / 0.6751 GB, free: 9.355 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001823/0.9215, allocations: 308.9 kB / 0.6754 GB, free: 9.051 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00285/0.9243, allocations: 3.221 MB / 0.6786 GB, free: 5.828 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.9244, allocations: 0 / 0.6786 GB, free: 5.828 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.443/1.367, allocations: 139.5 MB / 0.8148 GB, free: 28.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.17/26.54, allocations: 448 / 0.8148 GB, free: 28.55 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches