Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.582/1.582, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003463, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08115/0.08152, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4268/0.5083, allocations: 117.1 MB / 389.2 MB, free: 5.367 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.5087, allocations: 93.56 kB / 389.3 MB, free: 5.316 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7632/1.272, allocations: 145.4 MB / 0.5221 GB, free: 28.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.128e-06/1.272, allocations: 3.984 kB / 0.5221 GB, free: 28.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007647/1.273, allocations: 175.8 kB / 0.5223 GB, free: 28.77 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02878/1.302, allocations: 7.086 MB / 0.5292 GB, free: 21.6 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.302, allocations: 8.031 kB / 0.5292 GB, free: 21.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003942/1.306, allocations: 0.9001 MB / 0.5301 GB, free: 20.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006349/1.312, allocations: 0.9943 MB / 0.5311 GB, free: 19.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01698/1.329, allocations: 5.247 MB / 0.5362 GB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006099/1.33, allocations: 497 kB / 0.5367 GB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002713/1.332, allocations: 0.6404 MB / 0.5373 GB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02834/1.361, allocations: 8.888 MB / 0.546 GB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003079/1.361, allocations: 11.89 kB / 0.546 GB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002107/1.363, allocations: 280 kB / 0.5462 GB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003015/1.364, allocations: 272.8 kB / 0.5465 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5166/1.88, allocations: 7.115 MB / 0.5535 GB, free: 34.06 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08703/1.967, allocations: 27.94 MB / 0.5807 GB, free: 28.42 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/1.978, allocations: 5.994 MB / 0.5866 GB, free: 26.4 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007255/1.979, allocations: 166.8 kB / 0.5868 GB, free: 26.3 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/1.979, allocations: 66.34 kB / 0.5868 GB, free: 26.26 MB / 346.8 MB Notification: Performance of pre-optimization done (n=322): time 6.011e-06/1.979, allocations: 0 / 0.5868 GB, free: 26.26 MB / 346.8 MB Notification: Performance of matching and sorting (n=341): time 0.05572/2.035, allocations: 16.44 MB / 0.6029 GB, free: 21.55 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/2.035, allocations: 86.44 kB / 0.603 GB, free: 21.48 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008433/2.044, allocations: 3.438 MB / 0.6063 GB, free: 20.23 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007981/2.044, allocations: 83.73 kB / 0.6064 GB, free: 20.16 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/2.047, allocations: 2.688 MB / 0.609 GB, free: 18.02 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/2.048, allocations: 1.142 MB / 0.6101 GB, free: 17.14 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004159/2.049, allocations: 76.97 kB / 0.6102 GB, free: 17.08 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0002808/2.049, allocations: 467.9 kB / 0.6107 GB, free: 16.7 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005317/2.055, allocations: 1.913 MB / 0.6125 GB, free: 16 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006161/2.061, allocations: 2.756 MB / 0.6152 GB, free: 14.32 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006347/2.067, allocations: 2.334 MB / 0.6175 GB, free: 13.35 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.525e-05/2.067, allocations: 4.75 kB / 0.6175 GB, free: 13.35 MB / 346.8 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01777/2.085, allocations: 6.141 MB / 0.6235 GB, free: 10.94 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.45e-05/2.085, allocations: 18.62 kB / 0.6235 GB, free: 10.94 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-05/2.085, allocations: 31.11 kB / 0.6235 GB, free: 10.93 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004753/2.09, allocations: 1.25 MB / 0.6248 GB, free: 10.5 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006366/2.096, allocations: 0.8322 MB / 0.6256 GB, free: 10.48 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02626/2.123, allocations: 21.13 MB / 0.6462 GB, free: 9.086 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/2.128, allocations: 194.1 kB / 0.6464 GB, free: 9.023 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008693/2.129, allocations: 151.2 kB / 0.6465 GB, free: 8.992 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (420): * Single equations (assignments): 406 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006408/2.135, allocations: 2.126 MB / 0.6486 GB, free: 7.965 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/2.137, allocations: 453.1 kB / 0.649 GB, free: 7.734 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/2.154, allocations: 6.227 MB / 0.6551 GB, free: 4.941 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.575e-05/2.155, allocations: 33.22 kB / 0.6552 GB, free: 4.941 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/2.155, allocations: 18.78 kB / 0.6552 GB, free: 4.938 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.145e-05/2.155, allocations: 14.58 kB / 0.6552 GB, free: 4.938 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03827/2.193, allocations: 12.94 MB / 0.6678 GB, free: 10.89 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.628e-05/2.193, allocations: 7.719 kB / 0.6678 GB, free: 10.89 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004343/2.197, allocations: 494.9 kB / 0.6683 GB, free: 10.48 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007043/2.204, allocations: 1.618 MB / 0.6699 GB, free: 9.184 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006193/2.205, allocations: 75.17 kB / 0.67 GB, free: 9.117 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3206/2.526, allocations: 30.75 MB / 0.7 GB, free: 68.77 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/2.526, allocations: 5.625 kB / 0.7 GB, free: 68.77 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0241/2.55, allocations: 9.338 MB / 0.7091 GB, free: 67.32 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003622/2.554, allocations: 0.9433 MB / 0.71 GB, free: 67.23 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001675/2.555, allocations: 67 kB / 0.7101 GB, free: 67.23 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004765/2.56, allocations: 205.3 kB / 0.7103 GB, free: 67.23 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001403/2.562, allocations: 284.9 kB / 0.7106 GB, free: 67.22 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004833/2.562, allocations: 91.41 kB / 0.7106 GB, free: 67.22 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.00783/2.57, allocations: 2.636 MB / 0.7132 GB, free: 67.04 MB / 394.8 MB Notification: Performance of sort global known variables: time 6.92e-07/2.57, allocations: 1.031 kB / 0.7132 GB, free: 67.04 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.00773/2.578, allocations: 1.359 MB / 0.7146 GB, free: 67.04 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 231 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02505/2.603, allocations: 11.09 MB / 0.7254 GB, free: 64.38 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.01513/2.618, allocations: 6.434 MB / 0.7317 GB, free: 62.75 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/2.618, allocations: 3.969 kB / 0.7317 GB, free: 62.75 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01116/2.629, allocations: 4.884 MB / 0.7364 GB, free: 60.81 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/2.639, allocations: 1.242 MB / 0.7376 GB, free: 60.79 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1118/2.751, allocations: 58.28 MB / 0.7946 GB, free: 25.14 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008174/2.759, allocations: 4.421 MB / 0.7989 GB, free: 23.59 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006252/2.766, allocations: 2.602 MB / 0.8014 GB, free: 21.43 MB / 394.8 MB Notification: Performance of SimCode: time 1.142e-06/2.766, allocations: 3.75 kB / 0.8014 GB, free: 21.43 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.28/10.05, allocations: 0.6022 GB / 1.404 GB, free: 25.82 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat