Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_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.001664/0.001664, allocations: 109.4 kB / 16.92 MB, free: 5.781 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.002088/0.002088, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.234/2.234, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 54.36 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1736, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.02394/0.1977, allocations: 11.09 MB / 361.3 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.2114, allocations: 3.647 MB / 364.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004586/0.216, allocations: 39.88 kB / 364.9 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3831/0.5991, allocations: 8.124 MB / 373.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.6113, allocations: 4.621 MB / 377.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.6148, allocations: 0.9473 MB / 378.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01341/0.6282, allocations: 5.296 MB / 383.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002658/0.631, allocations: 0.8891 MB / 384.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008599/0.6396, allocations: 2.851 MB / 387.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009357/0.649, allocations: 5.124 MB / 392.8 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001645/0.6507, allocations: 352 kB / 393.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.6527, allocations: 392.8 kB / 393.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001666/0.6544, allocations: 1.871 MB / 395.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004187/0.6586, allocations: 2.784 MB / 398.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.6691, allocations: 7.147 MB / 405.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-05/0.6692, allocations: 2.25 kB / 405.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.508e-06/0.6693, allocations: 4.812 kB / 405.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003934/0.6697, allocations: 0 / 405.3 MB, free: 12.04 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.02521/0.6949, allocations: 7.647 MB / 413 MB, free: 4.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.914e-05/0.695, allocations: 8.031 kB / 413 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001099/0.6961, allocations: 291.6 kB / 413.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002171/0.6983, allocations: 0.8493 MB / 414.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007854/0.7062, allocations: 3.148 MB / 417.3 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002678/0.7065, allocations: 158.3 kB / 417.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006623/0.7072, allocations: 211.8 kB / 417.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006573/0.7137, allocations: 2.112 MB / 419.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.642e-05/0.7139, allocations: 8 kB / 419.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002986/0.7142, allocations: 80 kB / 419.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.055e-05/0.7143, allocations: 52 kB / 419.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006311/0.7206, allocations: 1.895 MB / 421.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02791/0.7485, allocations: 8.95 MB / 430.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007319/0.7559, allocations: 2.325 MB / 433 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004591/0.7605, allocations: 1.383 MB / 434.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002334/0.7608, allocations: 45.11 kB / 434.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003979/0.7648, allocations: 1.156 MB / 435.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 1.028e-05/0.7649, allocations: 0 / 435.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.1267/0.8915, allocations: 22.81 MB / 458.4 MB, free: 6.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.05466/0.9463, allocations: 13.63 MB / 472.1 MB, free: 8.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0457/0.9921, allocations: 14.89 MB / 487 MB, free: 9.566 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009823/0.9931, allocations: 89.7 kB / 487 MB, free: 9.473 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008122/1.001, allocations: 3.729 MB / 490.8 MB, free: 5.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002625/1.004, allocations: 1.211 MB / 492 MB, free: 4.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001721/1.006, allocations: 0.5117 MB / 492.5 MB, free: 4.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/1.006, allocations: 301.1 kB / 492.8 MB, free: 3.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004593/1.01, allocations: 1.256 MB / 494 MB, free: 2.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005246/1.016, allocations: 1.622 MB / 495.7 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/1.026, allocations: 2.986 MB / 498.7 MB, free: 13.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.603e-05/1.026, allocations: 7.938 kB / 498.7 MB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.02398/1.05, allocations: 5.206 MB / 0.4921 GB, free: 8.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.908e-05/1.05, allocations: 8 kB / 0.4921 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.87e-05/1.051, allocations: 4 kB / 0.4921 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009808/1.06, allocations: 1.409 MB / 0.4934 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005385/1.066, allocations: 0.546 MB / 0.494 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05533/1.121, allocations: 23.97 MB / 0.5174 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006856/1.128, allocations: 124 kB / 0.5175 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/1.129, allocations: 112 kB / 0.5176 GB, free: 13.02 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 (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.008618/1.138, allocations: 2.195 MB / 0.5198 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003352/1.141, allocations: 0.8136 MB / 0.5206 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02457/1.166, allocations: 5.223 MB / 0.5257 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.766e-05/1.166, allocations: 32 kB / 0.5257 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.962e-05/1.166, allocations: 8 kB / 0.5257 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000121/1.166, allocations: 19.88 kB / 0.5257 GB, free: 4.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3517/1.518, allocations: 11.08 MB / 0.5365 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.051e-05/1.518, allocations: 1.25 kB / 0.5365 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003925/1.522, allocations: 458.4 kB / 0.537 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008306/1.53, allocations: 1.345 MB / 0.5383 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007171/1.531, allocations: 78.27 kB / 0.5384 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03566/1.567, allocations: 21.87 MB / 0.5597 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03773/1.605, allocations: 11.93 MB / 0.5714 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02341/1.628, allocations: 6.941 MB / 0.5782 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002613/1.631, allocations: 0.7477 MB / 0.5789 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001618/1.632, allocations: 71.36 kB / 0.5789 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004103/1.637, allocations: 107.5 kB / 0.5791 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00126/1.638, allocations: 277.1 kB / 0.5793 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003806/1.638, allocations: 94.38 kB / 0.5794 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.02141/1.66, allocations: 11.12 MB / 0.5903 GB, free: 105.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.71e-07/1.66, allocations: 0 / 0.5903 GB, free: 105.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007579/1.667, allocations: 1.082 MB / 0.5913 GB, free: 104.8 MB / 446.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.02453/1.692, allocations: 7.933 MB / 0.5991 GB, free: 96.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01978/1.712, allocations: 4.918 MB / 0.6039 GB, free: 91.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/1.712, allocations: 4.062 kB / 0.6039 GB, free: 91.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008581/1.72, allocations: 3.292 MB / 0.6071 GB, free: 88.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006424/1.727, allocations: 0.539 MB / 0.6076 GB, free: 88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1784/1.905, allocations: 88.11 MB / 0.6937 GB, free: 9.723 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/1.917, allocations: 4.02 MB / 0.6976 GB, free: 5.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004111/1.921, allocations: 300.9 kB / 0.6979 GB, free: 5.363 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008545/1.929, allocations: 3.221 MB / 0.701 GB, free: 2.141 MB / 462.1 MB Notification: Performance of SimCode: time 1.613e-06/1.929, allocations: 0 / 0.701 GB, free: 2.141 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8003/2.73, allocations: 139.5 MB / 0.8372 GB, free: 41.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.2/31.93, allocations: 4.281 kB / 0.8372 GB, free: 41.65 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches