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.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_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005127, allocations: 15.94 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3691/0.3697, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1527/0.5224, allocations: 87.24 MB / 395.8 MB, free: 5.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/0.5228, allocations: 87.95 kB / 395.9 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.466/0.9888, allocations: 49.38 MB / 445.3 MB, free: 79.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.9889, allocations: 0 / 445.3 MB, free: 79.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002177/0.9891, allocations: 52 kB / 445.3 MB, free: 79.34 MB / 346.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.01064/0.9998, allocations: 2.636 MB / 448 MB, free: 76.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.9998, allocations: 8.031 kB / 448 MB, free: 76.63 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/1.001, allocations: 295.3 kB / 448.3 MB, free: 76.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009362/1.002, allocations: 292.4 kB / 448.5 MB, free: 76.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004373/1.006, allocations: 1.34 MB / 449.9 MB, free: 74.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/1.007, allocations: 156.1 kB / 450 MB, free: 74.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007312/1.007, allocations: 207.9 kB / 450.2 MB, free: 74.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007244/1.015, allocations: 1.908 MB / 452.2 MB, free: 72.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-05/1.015, allocations: 7.953 kB / 452.2 MB, free: 72.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003428/1.015, allocations: 80 kB / 452.2 MB, free: 72.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.149e-05/1.015, allocations: 52 kB / 452.3 MB, free: 72.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007818/1.023, allocations: 2.015 MB / 454.3 MB, free: 70.15 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02155/1.045, allocations: 7.594 MB / 461.9 MB, free: 62.28 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006539/1.051, allocations: 2.368 MB / 464.3 MB, free: 59.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000369/1.052, allocations: 37.97 kB / 464.3 MB, free: 59.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/1.052, allocations: 60.56 kB / 464.4 MB, free: 59.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 5.941e-06/1.052, allocations: 0 / 464.4 MB, free: 59.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=375): time 0.1131/1.165, allocations: 19.04 MB / 483.4 MB, free: 40.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1714/1.336, allocations: 34.49 MB / 0.5058 GB, free: 5.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003695/1.34, allocations: 1.627 MB / 0.5073 GB, free: 3.742 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007331/1.341, allocations: 85.7 kB / 0.5074 GB, free: 3.652 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009263/1.342, allocations: 0.9581 MB / 0.5084 GB, free: 2.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001605/1.343, allocations: 1.244 MB / 0.5096 GB, free: 1.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003941/1.344, allocations: 72 kB / 0.5096 GB, free: 1.348 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002156/1.344, allocations: 433.2 kB / 0.5101 GB, free: 0.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004914/1.349, allocations: 1.35 MB / 0.5114 GB, free: 15.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006005/1.355, allocations: 1.641 MB / 0.513 GB, free: 13.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006171/1.361, allocations: 1.568 MB / 0.5145 GB, free: 12.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.931e-05/1.361, allocations: 3.938 kB / 0.5145 GB, free: 12.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=437) (initialization): time 0.02184/1.383, allocations: 4.805 MB / 0.5192 GB, free: 7.438 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.622e-05/1.383, allocations: 33.64 kB / 0.5192 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/1.383, allocations: 7.984 kB / 0.5192 GB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/1.394, allocations: 1.383 MB / 0.5206 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005969/1.4, allocations: 0.5812 MB / 0.5212 GB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04484/1.445, allocations: 19.62 MB / 0.5403 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004811/1.45, allocations: 171.9 kB / 0.5405 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008449/1.45, allocations: 116 kB / 0.5406 GB, free: 0.5586 MB / 378.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.002522/1.453, allocations: 0.595 MB / 0.5412 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009455/1.454, allocations: 264.7 kB / 0.5414 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02183/1.476, allocations: 4.797 MB / 0.5461 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02538/1.501, allocations: 4.212 MB / 0.5502 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.938e-05/1.501, allocations: 4 kB / 0.5502 GB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001262/1.501, allocations: 19.92 kB / 0.5503 GB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4344/1.936, allocations: 9.88 MB / 0.5599 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-05/1.936, allocations: 0 / 0.5599 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005271/1.941, allocations: 0.4936 MB / 0.5604 GB, free: 111.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01015/1.951, allocations: 1.412 MB / 0.5618 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007758/1.952, allocations: 82.03 kB / 0.5618 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0363/1.989, allocations: 18.15 MB / 0.5796 GB, free: 102.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1447/2.133, allocations: 30.63 MB / 0.6095 GB, free: 84.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02266/2.156, allocations: 6.946 MB / 0.6163 GB, free: 77.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/2.158, allocations: 0.6891 MB / 0.6169 GB, free: 77.38 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006648/2.159, allocations: 68 kB / 0.617 GB, free: 77.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003703/2.163, allocations: 159 kB / 0.6172 GB, free: 77.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009649/2.164, allocations: 288.2 kB / 0.6174 GB, free: 77.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000331/2.164, allocations: 96.81 kB / 0.6175 GB, free: 76.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002584/2.167, allocations: 1.274 MB / 0.6188 GB, free: 75.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.874e-06/2.167, allocations: 0 / 0.6188 GB, free: 75.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0069/2.174, allocations: 1.075 MB / 0.6198 GB, free: 74.77 MB / 394.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.03488/2.208, allocations: 8.678 MB / 0.6283 GB, free: 66.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01802/2.227, allocations: 4.831 MB / 0.633 GB, free: 62.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/2.227, allocations: 0 / 0.633 GB, free: 62.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01188/2.239, allocations: 3.259 MB / 0.6362 GB, free: 59.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003764/2.242, allocations: 300 kB / 0.6365 GB, free: 58.77 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02397/2.266, allocations: 11.85 MB / 0.648 GB, free: 46.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/2.268, allocations: 1.838 MB / 0.6498 GB, free: 44.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003182/2.271, allocations: 320.3 kB / 0.6501 GB, free: 44.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002909/2.274, allocations: 1.087 MB / 0.6512 GB, free: 43.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.763e-06/2.274, allocations: 0 / 0.6512 GB, free: 43.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5633/2.838, allocations: 85.06 MB / 0.7343 GB, free: 117.4 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001829/2.838, allocations: 288.5 kB / 0.7345 GB, free: 117 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/10.87, allocations: 3.906 kB / 0.7345 GB, free: 117 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat