Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003736, allocations: 8 kB / 264.1 MB, free: 2.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2975, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01494/0.3125, allocations: 8.838 MB / 317.4 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009294/0.3218, allocations: 3.497 MB / 320.9 MB, free: 276 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001757/0.3236, allocations: 35.88 kB / 320.9 MB, free: 240 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01175/0.3354, allocations: 7.954 MB / 328.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00931/0.3448, allocations: 4.616 MB / 333.5 MB, free: 3.637 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.3478, allocations: 0.5382 MB / 334 MB, free: 3.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008339/0.3561, allocations: 3.491 MB / 337.5 MB, free: 15.6 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.358, allocations: 0.68 MB / 338.2 MB, free: 14.89 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005363/0.3634, allocations: 2.502 MB / 340.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008482/0.3719, allocations: 3.769 MB / 344.5 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.373, allocations: 136 kB / 344.6 MB, free: 8.473 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001254/0.3743, allocations: 163.9 kB / 344.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002364/0.3767, allocations: 1.709 MB / 346.5 MB, free: 6.598 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001665/0.3784, allocations: 1.075 MB / 347.6 MB, free: 5.512 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008686/0.3871, allocations: 5.403 MB / 353 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3872, allocations: 0 / 353 MB, free: 100 kB / 282.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3872, allocations: 0 / 353 MB, free: 100 kB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002623/0.3874, allocations: 0 / 353 MB, free: 100 kB / 282.7 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.01858/0.406, allocations: 6.735 MB / 359.7 MB, free: 9.254 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.4061, allocations: 12.03 kB / 359.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001019/0.4071, allocations: 295.3 kB / 360 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.4089, allocations: 0.8445 MB / 360.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007807/0.4167, allocations: 2.889 MB / 363.7 MB, free: 5.129 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.417, allocations: 160.1 kB / 363.9 MB, free: 4.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006309/0.4176, allocations: 211.9 kB / 364.1 MB, free: 4.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006826/0.4245, allocations: 2.073 MB / 366.2 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.171e-05/0.4246, allocations: 3.984 kB / 366.2 MB, free: 2.617 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003213/0.4249, allocations: 88 kB / 366.3 MB, free: 2.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.147e-05/0.425, allocations: 51.95 kB / 366.3 MB, free: 2.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00717/0.4322, allocations: 1.872 MB / 368.2 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02377/0.456, allocations: 8.767 MB / 376.9 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006541/0.4626, allocations: 2.274 MB / 379.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.4628, allocations: 34.28 kB / 379.3 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003695/0.4665, allocations: 1.139 MB / 380.4 MB, free: 4.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=242): time 5.891e-06/0.4666, allocations: 0 / 380.4 MB, free: 4.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=375): time 0.1109/0.5775, allocations: 21.41 MB / 401.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4025/0.9801, allocations: 30.14 MB / 431.9 MB, free: 81.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01992/1, allocations: 14.86 MB / 446.8 MB, free: 67.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006563/1.001, allocations: 90.33 kB / 446.9 MB, free: 67.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00465/1.005, allocations: 3.796 MB / 450.7 MB, free: 63.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001549/1.007, allocations: 1.237 MB / 451.9 MB, free: 62.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/1.007, allocations: 72 kB / 452 MB, free: 62.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001972/1.008, allocations: 441.4 kB / 452.4 MB, free: 62.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004097/1.012, allocations: 1.213 MB / 453.6 MB, free: 61.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004386/1.016, allocations: 1.574 MB / 455.2 MB, free: 59.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/1.021, allocations: 1.447 MB / 456.7 MB, free: 58.03 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/1.021, allocations: 0 / 456.7 MB, free: 58.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=446) (initialization): time 0.01762/1.038, allocations: 5.149 MB / 461.8 MB, free: 52.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.535e-05/1.038, allocations: 37.7 kB / 461.8 MB, free: 52.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.811e-05/1.039, allocations: 4 kB / 461.8 MB, free: 52.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009641/1.048, allocations: 1.355 MB / 463.2 MB, free: 51.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005699/1.054, allocations: 0.5539 MB / 463.8 MB, free: 50.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03609/1.09, allocations: 21.25 MB / 485 MB, free: 28.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005396/1.095, allocations: 171.9 kB / 485.2 MB, free: 28.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000743/1.096, allocations: 116 kB / 485.3 MB, free: 28.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 302 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.004646/1.101, allocations: 2.198 MB / 487.5 MB, free: 25.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/1.102, allocations: 0.8214 MB / 488.3 MB, free: 25.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01812/1.121, allocations: 5.153 MB / 493.5 MB, free: 19.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008392/1.129, allocations: 2.281 MB / 495.7 MB, free: 17.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.158e-05/1.129, allocations: 12 kB / 495.8 MB, free: 17.61 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.375e-05/1.129, allocations: 15.94 kB / 495.8 MB, free: 17.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0307/1.16, allocations: 10.79 MB / 0.4947 GB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.354e-05/1.16, allocations: 3.984 kB / 0.4947 GB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00453/1.164, allocations: 467.3 kB / 0.4951 GB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008819/1.173, allocations: 1.384 MB / 0.4965 GB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005904/1.174, allocations: 79.97 kB / 0.4966 GB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03764/1.212, allocations: 19.7 MB / 0.5158 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1317/1.343, allocations: 26.76 MB / 0.5419 GB, free: 4.582 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02453/1.368, allocations: 6.775 MB / 0.5485 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003241/1.371, allocations: 1.033 MB / 0.5496 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.372, allocations: 67.98 kB / 0.5496 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004501/1.377, allocations: 139.9 kB / 0.5498 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/1.378, allocations: 275.4 kB / 0.55 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004408/1.379, allocations: 104 kB / 0.5501 GB, free: 12.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.02139/1.4, allocations: 11.09 MB / 0.5609 GB, free: 1.043 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.81e-07/1.4, allocations: 0 / 0.5609 GB, free: 1.043 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.2714/1.672, allocations: 1.104 MB / 0.562 GB, free: 134.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.02568/1.697, allocations: 7.755 MB / 0.5696 GB, free: 133.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01252/1.71, allocations: 4.841 MB / 0.5743 GB, free: 131.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.71, allocations: 0 / 0.5743 GB, free: 131.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00779/1.718, allocations: 3.328 MB / 0.5776 GB, free: 130.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004056/1.722, allocations: 466.1 kB / 0.578 GB, free: 130.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05232/1.774, allocations: 49.24 MB / 0.6261 GB, free: 83.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006926/1.781, allocations: 4.2 MB / 0.6302 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0035/1.785, allocations: 345.1 kB / 0.6305 GB, free: 79.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005491/1.79, allocations: 3.245 MB / 0.6337 GB, free: 76.71 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/1.79, allocations: 0 / 0.6337 GB, free: 76.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6103/2.401, allocations: 134.7 MB / 0.7652 GB, free: 106.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/2.401, allocations: 286 kB / 0.7655 GB, free: 106.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/13.12, allocations: 64 / 0.7655 GB, free: 106.1 MB / 426.7 MB