Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.000366, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08749, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4145/0.502, allocations: 100.7 MB / 372.9 MB, free: 5.59 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.5024, allocations: 88.89 kB / 372.9 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5565/1.059, allocations: 65.39 MB / 438.3 MB, free: 73.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.059, allocations: 0 / 438.3 MB, free: 73.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005098/1.06, allocations: 85.69 kB / 438.4 MB, free: 73.88 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: 795 * Number of variables: 795 Notification: Performance of Generate backend data structure: time 0.01591/1.075, allocations: 3.64 MB / 442.1 MB, free: 72.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/1.076, allocations: 9.25 kB / 442.1 MB, free: 72.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002104/1.078, allocations: 442.4 kB / 442.5 MB, free: 72.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002456/1.08, allocations: 456 kB / 442.9 MB, free: 72.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008587/1.089, allocations: 2.345 MB / 445.3 MB, free: 71.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003995/1.089, allocations: 233.6 kB / 445.5 MB, free: 71.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/1.091, allocations: 307.7 kB / 445.8 MB, free: 71.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/1.105, allocations: 4.318 MB / 450.1 MB, free: 71.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/1.106, allocations: 10.55 kB / 450.1 MB, free: 71.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007838/1.106, allocations: 133.4 kB / 450.3 MB, free: 71.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/1.107, allocations: 126.7 kB / 450.4 MB, free: 71.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/1.118, allocations: 3.602 MB / 454 MB, free: 71.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03536/1.154, allocations: 13.57 MB / 467.6 MB, free: 66.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00566/1.159, allocations: 2.952 MB / 470.5 MB, free: 65.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004987/1.16, allocations: 150.2 kB / 470.7 MB, free: 65.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/1.16, allocations: 54.38 kB / 470.7 MB, free: 65.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=167): time 5.38e-06/1.16, allocations: 0 / 470.7 MB, free: 65.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=183): time 0.03197/1.192, allocations: 9.417 MB / 480.1 MB, free: 61.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/1.192, allocations: 75.64 kB / 480.2 MB, free: 60.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004913/1.197, allocations: 2.046 MB / 482.3 MB, free: 60.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005102/1.198, allocations: 56.67 kB / 482.3 MB, free: 60.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/1.199, allocations: 1.351 MB / 483.7 MB, free: 59.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/1.2, allocations: 0.6054 MB / 484.3 MB, free: 58.58 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/1.2, allocations: 45.75 kB / 484.3 MB, free: 58.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/1.2, allocations: 391 kB / 484.7 MB, free: 58.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003141/1.203, allocations: 1.152 MB / 485.8 MB, free: 57.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/1.207, allocations: 1.555 MB / 487.4 MB, free: 56.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003623/1.21, allocations: 1.356 MB / 488.8 MB, free: 56.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-05/1.211, allocations: 2.656 kB / 488.8 MB, free: 56.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.009666/1.22, allocations: 3.468 MB / 492.2 MB, free: 55.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/1.22, allocations: 12.59 kB / 492.2 MB, free: 55.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.701e-05/1.22, allocations: 9.656 kB / 492.2 MB, free: 55.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003277/1.224, allocations: 0.7973 MB / 493 MB, free: 54.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/1.227, allocations: 471.3 kB / 493.5 MB, free: 54.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.241, allocations: 10.5 MB / 0.4922 GB, free: 46.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/1.245, allocations: 134 kB / 0.4923 GB, free: 46.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005287/1.245, allocations: 77.14 kB / 0.4924 GB, free: 46.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003311/1.249, allocations: 1.095 MB / 0.4935 GB, free: 46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009054/1.249, allocations: 256.3 kB / 0.4937 GB, free: 45.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009309/1.259, allocations: 3.388 MB / 0.497 GB, free: 43.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/1.259, allocations: 27.52 kB / 0.497 GB, free: 43.08 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.259e-05/1.259, allocations: 4 kB / 0.497 GB, free: 43.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.233e-05/1.259, allocations: 6.891 kB / 0.4971 GB, free: 43.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/1.279, allocations: 6.931 MB / 0.5038 GB, free: 37.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/1.279, allocations: 0 / 0.5038 GB, free: 37.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002736/1.282, allocations: 312.4 kB / 0.5041 GB, free: 37.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004033/1.286, allocations: 0.926 MB / 0.505 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004568/1.286, allocations: 43.64 kB / 0.5051 GB, free: 36.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/1.303, allocations: 13.77 MB / 0.5185 GB, free: 22.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.303, allocations: 4.031 kB / 0.5185 GB, free: 22.78 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/1.316, allocations: 5.162 MB / 0.5236 GB, free: 18.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002232/1.318, allocations: 0.5805 MB / 0.5241 GB, free: 17.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009922/1.319, allocations: 39.47 kB / 0.5242 GB, free: 17.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002902/1.322, allocations: 131.1 kB / 0.5243 GB, free: 17.53 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007099/1.323, allocations: 158.4 kB / 0.5244 GB, free: 17.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000232/1.323, allocations: 50.66 kB / 0.5245 GB, free: 17.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003917/1.327, allocations: 1.577 MB / 0.526 GB, free: 16.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.327, allocations: 4 kB / 0.526 GB, free: 16.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004246/1.332, allocations: 0.7377 MB / 0.5267 GB, free: 15.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01401/1.346, allocations: 6.419 MB / 0.533 GB, free: 9.562 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008765/1.354, allocations: 3.673 MB / 0.5366 GB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.354, allocations: 0 / 0.5366 GB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005929/1.36, allocations: 2.555 MB / 0.5391 GB, free: 3.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005401/1.366, allocations: 0.675 MB / 0.5398 GB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.307/1.673, allocations: 28.8 MB / 0.5679 GB, free: 78.58 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004475/1.677, allocations: 2.542 MB / 0.5704 GB, free: 77.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003195/1.681, allocations: 1.242 MB / 0.5716 GB, free: 77.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/1.681, allocations: 0 / 0.5716 GB, free: 77.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.738/6.418, allocations: 175.8 MB / 0.7432 GB, free: 83.09 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat