Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.726/1.726, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003526, allocations: 8 kB / 233.3 MB, free: 2.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08326/0.08364, allocations: 38.78 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01472/0.09841, allocations: 8.772 MB / 280.8 MB, free: 3.305 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00839/0.1068, allocations: 3.162 MB / 284 MB, free: 140 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.1085, allocations: 39.88 kB / 284 MB, free: 100 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.11, allocations: 0.556 MB / 284.6 MB, free: 15.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003701/0.1137, allocations: 0.9077 MB / 285.5 MB, free: 14.63 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.116, allocations: 0.5148 MB / 286 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004624/0.1206, allocations: 2.037 MB / 288 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.1221, allocations: 0.6877 MB / 288.7 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.1242, allocations: 0.9847 MB / 289.7 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002424/0.1266, allocations: 1.19 MB / 290.9 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005609/0.1272, allocations: 139.9 kB / 291 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007571/0.128, allocations: 171.9 kB / 291.2 MB, free: 8.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005919/0.1286, allocations: 482.1 kB / 291.7 MB, free: 8.402 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000734/0.1294, allocations: 0.5081 MB / 292.2 MB, free: 7.887 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004603/0.134, allocations: 3.252 MB / 295.4 MB, free: 4.625 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.134, allocations: 4 kB / 295.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.134, allocations: 0 / 295.4 MB, free: 4.621 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.1342, allocations: 0 / 295.4 MB, free: 4.621 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.01015/0.1443, allocations: 2.692 MB / 298.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.1444, allocations: 8.031 kB / 298.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006696/0.1451, allocations: 279 kB / 298.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006788/0.1458, allocations: 288.5 kB / 298.7 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2365/0.3823, allocations: 1.306 MB / 300 MB, free: 27.54 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005156/0.3829, allocations: 153.3 kB / 300.1 MB, free: 27.53 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/0.3841, allocations: 200 kB / 300.3 MB, free: 27.53 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/0.395, allocations: 1.851 MB / 302.2 MB, free: 27.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/0.3952, allocations: 2.344 kB / 302.2 MB, free: 27.14 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006089/0.3958, allocations: 80.53 kB / 302.3 MB, free: 27.08 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.474e-05/0.3959, allocations: 49.38 kB / 302.3 MB, free: 27.08 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01455/0.4105, allocations: 1.9 MB / 304.2 MB, free: 26.41 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03106/0.4416, allocations: 7.341 MB / 311.5 MB, free: 22.17 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008198/0.4499, allocations: 2.193 MB / 313.7 MB, free: 20.91 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005668/0.4505, allocations: 127.5 kB / 313.9 MB, free: 20.8 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.712e-05/0.4506, allocations: 57.59 kB / 313.9 MB, free: 20.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=220): time 9.749e-06/0.4506, allocations: 0 / 313.9 MB, free: 20.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=336): time 0.1315/0.5821, allocations: 17.28 MB / 331.2 MB, free: 6.762 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3956/0.9777, allocations: 36.63 MB / 367.8 MB, free: 1.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006211/0.984, allocations: 1.82 MB / 369.6 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008497/0.9849, allocations: 77.7 kB / 369.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001479/0.9864, allocations: 0.9034 MB / 370.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002729/0.9892, allocations: 1.109 MB / 371.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006649/0.9899, allocations: 60 kB / 371.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004543/0.9904, allocations: 441.4 kB / 372.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007969/0.9984, allocations: 1.314 MB / 373.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008895/1.007, allocations: 1.608 MB / 375.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008998/1.016, allocations: 1.518 MB / 376.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/1.016, allocations: 4 kB / 376.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=401) (initialization): time 0.02355/1.04, allocations: 4.058 MB / 380.7 MB, free: 4.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.965e-05/1.04, allocations: 38.31 kB / 380.8 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/1.04, allocations: 4 kB / 380.8 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03114/1.071, allocations: 1.536 MB / 382.3 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/1.081, allocations: 0.5616 MB / 382.9 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02121/1.103, allocations: 9.919 MB / 392.8 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007493/1.11, allocations: 148 kB / 392.9 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.111, allocations: 127.9 kB / 393.1 MB, free: 7.543 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 282 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 48,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.003433/1.115, allocations: 0.5761 MB / 393.6 MB, free: 6.957 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/1.116, allocations: 248.9 kB / 393.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02426/1.141, allocations: 4.203 MB / 398.1 MB, free: 2.438 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02094/1.162, allocations: 3.63 MB / 401.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.023e-05/1.162, allocations: 4 kB / 401.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001057/1.162, allocations: 15.94 kB / 401.7 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06439/1.226, allocations: 8.925 MB / 410.6 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.737e-05/1.226, allocations: 4 kB / 410.7 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01976/1.246, allocations: 483.5 kB / 411.1 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03116/1.277, allocations: 1.596 MB / 412.7 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009487/1.278, allocations: 83.92 kB / 412.8 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0227/1.301, allocations: 9.945 MB / 422.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.6349/1.936, allocations: 32.08 MB / 454.8 MB, free: 100.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01669/1.953, allocations: 5.945 MB / 460.8 MB, free: 97.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/1.955, allocations: 0.6519 MB / 461.4 MB, free: 96.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007117/1.955, allocations: 60.97 kB / 461.5 MB, free: 96.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003843/1.959, allocations: 139.6 kB / 461.6 MB, free: 96.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005923/1.96, allocations: 219.8 kB / 461.8 MB, free: 96.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003165/1.96, allocations: 104.8 kB / 461.9 MB, free: 96.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002289/1.962, allocations: 1.271 MB / 463.2 MB, free: 95.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.962, allocations: 0 / 463.2 MB, free: 95.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003583/1.966, allocations: 0.8055 MB / 464 MB, free: 95.14 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 222 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 37,5 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.01761/1.984, allocations: 6.703 MB / 470.7 MB, free: 88.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01117/1.995, allocations: 4.081 MB / 474.8 MB, free: 84.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.995, allocations: 5 kB / 474.8 MB, free: 84.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006843/2.002, allocations: 2.524 MB / 477.3 MB, free: 81.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/2.004, allocations: 309.8 kB / 477.6 MB, free: 81.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/2.024, allocations: 9.347 MB / 487 MB, free: 71.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/2.025, allocations: 1.736 MB / 488.7 MB, free: 69.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003184/2.028, allocations: 1.108 MB / 489.8 MB, free: 68.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.723e-06/2.028, allocations: 0 / 489.8 MB, free: 68.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.405/6.433, allocations: 132.6 MB / 0.6078 GB, free: 77.84 MB / 362.7 MB