Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 1.021/1.021, allocations: 111.2 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002804/0.0002808, allocations: 4 kB / 158.3 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04503/0.04534, allocations: 25.17 MB / 183.4 MB, free: 6.012 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01214/0.05752, allocations: 8.493 MB / 191.9 MB, free: 13.5 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.006711/0.06428, allocations: 2.907 MB / 194.8 MB, free: 10.59 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.06606, allocations: 31.94 kB / 194.9 MB, free: 10.55 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.06739, allocations: 0.5405 MB / 195.4 MB, free: 10.01 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003035/0.07045, allocations: 0.8882 MB / 196.3 MB, free: 9.121 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002213/0.0727, allocations: 0.511 MB / 196.8 MB, free: 8.609 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.005166/0.0779, allocations: 2.021 MB / 198.8 MB, free: 6.586 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.07945, allocations: 0.6837 MB / 199.5 MB, free: 5.879 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.0814, allocations: 0.9769 MB / 200.5 MB, free: 4.895 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00196/0.08339, allocations: 1.175 MB / 201.7 MB, free: 3.715 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004386/0.08386, allocations: 140 kB / 201.8 MB, free: 3.578 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006048/0.08448, allocations: 160 kB / 201.9 MB, free: 3.422 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005453/0.08504, allocations: 474.1 kB / 202.4 MB, free: 2.957 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007132/0.08577, allocations: 0.5003 MB / 202.9 MB, free: 2.449 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.125/0.2108, allocations: 3.215 MB / 206.1 MB, free: 10.24 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.393e-06/0.2108, allocations: 1.469 kB / 206.1 MB, free: 10.24 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.889e-06/0.2109, allocations: 0 / 206.1 MB, free: 10.24 MB / 170.7 MB Notification: Performance of Transformations before backend: time 8.41e-05/0.2109, allocations: 0 / 206.1 MB, free: 10.24 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.006726/0.2177, allocations: 2.627 MB / 208.8 MB, free: 8.984 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.2177, allocations: 12.05 kB / 208.8 MB, free: 8.984 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007993/0.2186, allocations: 284.8 kB / 209 MB, free: 8.84 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/0.2217, allocations: 1.285 MB / 210.3 MB, free: 8.418 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.2219, allocations: 149.6 kB / 210.5 MB, free: 8.414 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004545/0.2224, allocations: 198.3 kB / 210.7 MB, free: 8.414 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005398/0.2278, allocations: 2.125 MB / 212.8 MB, free: 8.285 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.287e-05/0.2279, allocations: 10.95 kB / 212.8 MB, free: 8.281 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002426/0.2281, allocations: 78.12 kB / 212.9 MB, free: 8.281 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-05/0.2282, allocations: 49 kB / 212.9 MB, free: 8.281 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005321/0.2335, allocations: 1.948 MB / 214.9 MB, free: 8.254 MB / 170.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.01487/0.2484, allocations: 7.097 MB / 222 MB, free: 5.402 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/0.2528, allocations: 2.241 MB / 224.2 MB, free: 4.484 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/0.2531, allocations: 134.1 kB / 224.3 MB, free: 4.379 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.2531, allocations: 59.12 kB / 224.4 MB, free: 4.324 MB / 170.7 MB Notification: Performance of pre-optimization done (n=215): time 6.326e-06/0.2532, allocations: 0 / 224.4 MB, free: 4.324 MB / 170.7 MB Notification: Performance of matching and sorting (n=332): time 0.1226/0.3757, allocations: 18.69 MB / 243.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1769/0.5527, allocations: 34.85 MB / 277.9 MB, free: 15 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic/FluxTubes.mo:3057:9-3059:53:writable] Warning: Parameter advancedSolenoid.g_mFePole.r_i has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003224/0.556, allocations: 1.584 MB / 279.5 MB, free: 13.42 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005224/0.5565, allocations: 81.7 kB / 279.6 MB, free: 13.33 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009048/0.5574, allocations: 0.9055 MB / 280.5 MB, free: 12.42 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/0.559, allocations: 1.093 MB / 281.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003167/0.5593, allocations: 60 kB / 281.7 MB, free: 11.28 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003247/0.5597, allocations: 425.3 kB / 282.1 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00436/0.5641, allocations: 1.396 MB / 283.5 MB, free: 9.457 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/0.5689, allocations: 1.699 MB / 285.2 MB, free: 7.695 MB / 234.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.03953/0.6084, allocations: 5.135 MB / 290.3 MB, free: 2.566 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/0.6085, allocations: 7.953 kB / 290.3 MB, free: 2.559 MB / 234.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01241/0.6209, allocations: 4.155 MB / 294.5 MB, free: 14.4 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.621, allocations: 10.3 kB / 294.5 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-05/0.621, allocations: 7.953 kB / 294.5 MB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0122/0.6332, allocations: 1.504 MB / 296 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004053/0.6373, allocations: 0.5734 MB / 296.6 MB, free: 12.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/0.6506, allocations: 9.882 MB / 306.4 MB, free: 1.766 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003232/0.6539, allocations: 154.6 kB / 306.6 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006452/0.6546, allocations: 123.9 kB / 306.7 MB, free: 1.496 MB / 250.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 282 * Array equations: 2 * 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%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 37,5 42} Notification: Performance of prepare postOptimizeDAE: time 0.002116/0.6567, allocations: 0.5676 MB / 307.3 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007734/0.6575, allocations: 245 kB / 307.5 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1392/0.7967, allocations: 4.41 MB / 311.9 MB, free: 91.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01022/0.807, allocations: 3.827 MB / 315.8 MB, free: 90.88 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/0.8071, allocations: 7.859 kB / 315.8 MB, free: 90.87 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-05/0.8071, allocations: 14.44 kB / 315.8 MB, free: 90.87 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02179/0.8289, allocations: 9.203 MB / 325 MB, free: 86.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-05/0.829, allocations: 3.844 kB / 325 MB, free: 86.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/0.8325, allocations: 495.2 kB / 325.5 MB, free: 86.41 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01298/0.8455, allocations: 1.568 MB / 327 MB, free: 85.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005862/0.8462, allocations: 89.34 kB / 327.1 MB, free: 85.69 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009464/0.8556, allocations: 9.903 MB / 337 MB, free: 75.65 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1417/0.9974, allocations: 31.19 MB / 368.2 MB, free: 44.39 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/1.012, allocations: 6.354 MB / 374.6 MB, free: 37.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.014, allocations: 0.643 MB / 375.2 MB, free: 37.24 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007324/1.015, allocations: 60 kB / 375.3 MB, free: 37.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.018, allocations: 155.9 kB / 375.4 MB, free: 37.03 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006295/1.018, allocations: 206.2 kB / 375.6 MB, free: 36.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003459/1.019, allocations: 107.9 kB / 375.7 MB, free: 36.72 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001971/1.021, allocations: 1.078 MB / 376.8 MB, free: 35.65 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.23e-07/1.021, allocations: 7.938 kB / 376.8 MB, free: 35.64 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003472/1.024, allocations: 0.7959 MB / 377.6 MB, free: 34.85 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 45} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007582/1.025, allocations: 245.5 kB / 377.9 MB, free: 34.63 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.009689/1.035, allocations: 4.184 MB / 382 MB, free: 30.37 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.111e-06/1.035, allocations: 5 kB / 382.1 MB, free: 30.37 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005953/1.041, allocations: 2.601 MB / 384.7 MB, free: 27.71 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/1.043, allocations: 329.7 kB / 385 MB, free: 27.38 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/1.057, allocations: 7.691 MB / 392.7 MB, free: 19.58 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002433/1.059, allocations: 1.735 MB / 394.4 MB, free: 17.81 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0034/1.063, allocations: 231.2 kB / 394.6 MB, free: 17.59 MB / 250.7 MB Notification: Performance of SimCode: time 2.708e-06/1.063, allocations: 0 / 394.6 MB, free: 17.59 MB / 250.7 MB Notification: Performance of Templates: time 0.4662/1.529, allocations: 120.4 MB / 0.5029 GB, free: 80.05 MB / 250.7 MB