Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.585/1.585, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.905e-05, allocations: 4 kB / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06921/0.06925, allocations: 38.76 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2991/0.3684, allocations: 83.05 MB / 344.3 MB, free: 5.359 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3687, allocations: 84.52 kB / 344.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2704/0.639, allocations: 71.36 MB / 415.8 MB, free: 304 kB / 346.7 MB Notification: Performance of FrontEnd: time 6.097e-06/0.6391, allocations: 0 / 415.8 MB, free: 304 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000885/0.64, allocations: 119.9 kB / 415.9 MB, free: 184 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.1993/0.8393, allocations: 5.522 MB / 421.4 MB, free: 78.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.8394, allocations: 12.22 kB / 421.4 MB, free: 78.9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002471/0.8419, allocations: 0.8592 MB / 422.3 MB, free: 78.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/0.8522, allocations: 3.512 MB / 425.8 MB, free: 77.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.8524, allocations: 73.55 kB / 425.9 MB, free: 77.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005494/0.8529, allocations: 120.2 kB / 426 MB, free: 77.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00505/0.858, allocations: 1.614 MB / 427.6 MB, free: 77.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005653/0.8637, allocations: 1.664 MB / 429.3 MB, free: 77.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.8638, allocations: 2.969 kB / 429.3 MB, free: 77.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003091/0.8641, allocations: 0 / 429.3 MB, free: 77.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.285e-05/0.8642, allocations: 49.12 kB / 429.3 MB, free: 77.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02315/0.8874, allocations: 9.605 MB / 438.9 MB, free: 75.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/0.8915, allocations: 2.07 MB / 441 MB, free: 75.19 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.8942, allocations: 1.181 MB / 442.2 MB, free: 75.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/0.8945, allocations: 120.3 kB / 442.3 MB, free: 75.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002011/0.8965, allocations: 0.9791 MB / 443.3 MB, free: 74.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 6.435e-06/0.8966, allocations: 0 / 443.3 MB, free: 74.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=355): time 0.06204/0.9586, allocations: 17.07 MB / 460.3 MB, free: 67.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.9588, allocations: 285.1 kB / 460.6 MB, free: 67.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1962/1.155, allocations: 12.87 MB / 473.5 MB, free: 62.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005743/1.156, allocations: 32.98 kB / 473.5 MB, free: 62.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003601/1.159, allocations: 2.857 MB / 476.4 MB, free: 60.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001308/1.161, allocations: 1.125 MB / 477.5 MB, free: 59.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/1.161, allocations: 3.531 kB / 477.5 MB, free: 59.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/1.161, allocations: 435.1 kB / 477.9 MB, free: 58.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002886/1.164, allocations: 1.276 MB / 479.2 MB, free: 57.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00332/1.167, allocations: 1.576 MB / 480.8 MB, free: 56.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/1.171, allocations: 1.553 MB / 482.3 MB, free: 54.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/1.171, allocations: 4 kB / 482.3 MB, free: 54.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.009727/1.181, allocations: 3.988 MB / 486.3 MB, free: 51 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/1.181, allocations: 33.7 kB / 486.4 MB, free: 50.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.492e-05/1.181, allocations: 7.516 kB / 486.4 MB, free: 50.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004253/1.186, allocations: 1.007 MB / 487.4 MB, free: 50.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/1.19, allocations: 0.5945 MB / 488 MB, free: 49.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.201, allocations: 12.71 MB / 0.489 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00448/1.206, allocations: 134.8 kB / 0.4891 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007276/1.207, allocations: 139.5 kB / 0.4892 GB, free: 36.36 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 290 * 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.0008363/1.207, allocations: 150.9 kB / 0.4894 GB, free: 36.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00189/1.209, allocations: 0.8411 MB / 0.4902 GB, free: 35.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/1.222, allocations: 4.807 MB / 0.4949 GB, free: 31.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004871/1.227, allocations: 2.066 MB / 0.4969 GB, free: 29.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.741e-05/1.227, allocations: 8 kB / 0.4969 GB, free: 29.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.326e-05/1.227, allocations: 20.17 kB / 0.4969 GB, free: 29.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03062/1.258, allocations: 13.35 MB / 0.51 GB, free: 18.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.258, allocations: 0 / 0.51 GB, free: 18.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003574/1.261, allocations: 0.5083 MB / 0.5105 GB, free: 18.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/1.266, allocations: 1.056 MB / 0.5115 GB, free: 17.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005348/1.266, allocations: 53.06 kB / 0.5115 GB, free: 17.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/1.277, allocations: 12.37 MB / 0.5236 GB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2942/1.572, allocations: 27.77 MB / 0.5507 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01612/1.588, allocations: 7.257 MB / 0.5578 GB, free: 80.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003973/1.592, allocations: 1.581 MB / 0.5594 GB, free: 80.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001748/1.594, allocations: 30.06 kB / 0.5594 GB, free: 80.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00392/1.597, allocations: 111.9 kB / 0.5595 GB, free: 80.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00073/1.598, allocations: 242 kB / 0.5597 GB, free: 80.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003794/1.599, allocations: 119.9 kB / 0.5598 GB, free: 80.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01875/1.617, allocations: 10.28 MB / 0.5699 GB, free: 79.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.239e-06/1.617, allocations: 3 kB / 0.5699 GB, free: 79.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005517/1.623, allocations: 1.425 MB / 0.5713 GB, free: 79.97 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET1.x[2],$STATESET1.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET0.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 239 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 47,3 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.001383/1.624, allocations: 335 kB / 0.5716 GB, free: 79.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008372/1.633, allocations: 4.211 MB / 0.5757 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.633, allocations: 6.859 kB / 0.5757 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005208/1.638, allocations: 2.698 MB / 0.5783 GB, free: 76.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/1.642, allocations: 426 kB / 0.5788 GB, free: 76.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03327/1.675, allocations: 17.49 MB / 0.5958 GB, free: 71.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006166/1.682, allocations: 4.12 MB / 0.5999 GB, free: 70.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/1.684, allocations: 438.6 kB / 0.6003 GB, free: 69.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.672e-06/1.684, allocations: 0 / 0.6003 GB, free: 69.79 MB / 362.7 MB Notification: Performance of Templates: time 2.188/3.873, allocations: 0.5397 GB / 1.14 GB, free: 96.49 MB / 394.7 MB