Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary.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.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09299, allocations: 44.5 MB / 308.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5223, allocations: 87.25 MB / 395.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.5227, allocations: 90.02 kB / 395.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2621/0.7848, allocations: 49.38 MB / 445.3 MB, free: 8.578 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.7849, allocations: 4 kB / 445.3 MB, free: 8.574 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003146/0.7852, allocations: 47.52 kB / 445.3 MB, free: 8.531 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.01464/0.7999, allocations: 2.63 MB / 447.9 MB, free: 6.004 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/0.8, allocations: 16.03 kB / 448 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001498/0.8015, allocations: 285.5 kB / 448.2 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.8032, allocations: 292.4 kB / 448.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006529/0.8098, allocations: 1.336 MB / 449.9 MB, free: 4.512 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003601/0.8102, allocations: 157.1 kB / 450 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/0.8114, allocations: 207.2 kB / 450.2 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.8228, allocations: 1.915 MB / 452.1 MB, free: 2.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002302/0.8231, allocations: 7.906 kB / 452.1 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009629/0.8241, allocations: 84 kB / 452.2 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001/0.8242, allocations: 52 kB / 452.3 MB, free: 2.359 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01286/0.8371, allocations: 2.007 MB / 454.3 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03665/0.8738, allocations: 7.6 MB / 461.9 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/0.885, allocations: 2.364 MB / 464.2 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004951/0.8856, allocations: 40.31 kB / 464.3 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.155e-05/0.8857, allocations: 56.56 kB / 464.3 MB, free: 6.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 9.448e-06/0.8857, allocations: 4 kB / 464.3 MB, free: 6.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=375): time 0.1407/1.026, allocations: 19.04 MB / 483.4 MB, free: 2.895 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1822/1.209, allocations: 34.5 MB / 0.5057 GB, free: 15.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/1.213, allocations: 1.639 MB / 0.5073 GB, free: 14.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007552/1.214, allocations: 85.7 kB / 0.5074 GB, free: 14.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/1.215, allocations: 0.8869 MB / 0.5083 GB, free: 13.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002016/1.217, allocations: 1.238 MB / 0.5095 GB, free: 11.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/1.217, allocations: 64 kB / 0.5095 GB, free: 11.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003061/1.218, allocations: 438.1 kB / 0.51 GB, free: 11.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005166/1.223, allocations: 1.358 MB / 0.5113 GB, free: 10.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005888/1.229, allocations: 1.645 MB / 0.5129 GB, free: 8.414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005982/1.235, allocations: 1.568 MB / 0.5144 GB, free: 6.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.639e-05/1.235, allocations: 0 / 0.5144 GB, free: 6.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=437) (initialization): time 0.02058/1.255, allocations: 4.721 MB / 0.519 GB, free: 2.062 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/1.255, allocations: 37.69 kB / 0.5191 GB, free: 2.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/1.256, allocations: 4 kB / 0.5191 GB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009876/1.265, allocations: 1.385 MB / 0.5204 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005758/1.271, allocations: 0.5773 MB / 0.521 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3005/1.572, allocations: 19.62 MB / 0.5402 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/1.576, allocations: 166 kB / 0.5403 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000575/1.577, allocations: 118.8 kB / 0.5404 GB, free: 104.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (317): * Single equations (assignments): 307 * 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 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.002122/1.579, allocations: 0.5932 MB / 0.541 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008558/1.58, allocations: 263.5 kB / 0.5413 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01861/1.599, allocations: 4.796 MB / 0.5459 GB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01667/1.615, allocations: 4.222 MB / 0.5501 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.615, allocations: 6.656 kB / 0.5501 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/1.616, allocations: 19.31 kB / 0.5501 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03167/1.647, allocations: 9.866 MB / 0.5597 GB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.724e-05/1.647, allocations: 6.906 kB / 0.5597 GB, free: 99.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005049/1.652, allocations: 0.4978 MB / 0.5602 GB, free: 99.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009822/1.662, allocations: 1.42 MB / 0.5616 GB, free: 99.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008077/1.663, allocations: 74.59 kB / 0.5617 GB, free: 99.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03464/1.698, allocations: 18.15 MB / 0.5794 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1437/1.842, allocations: 30.64 MB / 0.6093 GB, free: 64.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/1.866, allocations: 6.958 MB / 0.6161 GB, free: 57.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002453/1.868, allocations: 0.6909 MB / 0.6168 GB, free: 57.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/1.869, allocations: 64 kB / 0.6169 GB, free: 57.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004294/1.874, allocations: 162.9 kB / 0.617 GB, free: 56.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/1.875, allocations: 280.5 kB / 0.6173 GB, free: 56.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005095/1.875, allocations: 101.7 kB / 0.6174 GB, free: 56.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002802/1.878, allocations: 1.271 MB / 0.6186 GB, free: 55.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.878, allocations: 0 / 0.6186 GB, free: 55.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005967/1.884, allocations: 1.07 MB / 0.6197 GB, free: 54.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (257): * Single equations (assignments): 250 * 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 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.02925/1.914, allocations: 8.669 MB / 0.6281 GB, free: 46.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01911/1.933, allocations: 4.83 MB / 0.6328 GB, free: 41.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.933, allocations: 6.25 kB / 0.6328 GB, free: 41.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01221/1.945, allocations: 3.253 MB / 0.636 GB, free: 38.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003855/1.949, allocations: 310.4 kB / 0.6363 GB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/1.98, allocations: 11.92 MB / 0.648 GB, free: 26.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/1.983, allocations: 1.838 MB / 0.6498 GB, free: 25.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004934/1.988, allocations: 1.112 MB / 0.6508 GB, free: 23.96 MB / 410.7 MB Notification: Performance of SimCode: time 4.318e-06/1.988, allocations: 0 / 0.6508 GB, free: 23.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.745/6.733, allocations: 138.3 MB / 0.7859 GB, free: 27.62 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat