Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.00161, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.052/2.052, allocations: 205.4 MB / 222.5 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001197/0.001196, allocations: 103.3 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003931/0.0003933, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3812, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01247/0.3937, allocations: 8.34 MB / 383 MB, free: 39.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008483/0.4022, allocations: 3.356 MB / 386.3 MB, free: 36.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002231/0.4045, allocations: 46.84 kB / 386.4 MB, free: 36.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.4076, allocations: 0.6366 MB / 387 MB, free: 35.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00435/0.4119, allocations: 0.7249 MB / 387.7 MB, free: 35.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.4137, allocations: 264.4 kB / 388 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004976/0.4187, allocations: 1.808 MB / 389.8 MB, free: 33.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002681/0.4214, allocations: 1.557 MB / 391.4 MB, free: 32.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.4234, allocations: 0.864 MB / 392.2 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002482/0.4259, allocations: 1.132 MB / 393.4 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.4266, allocations: 136 kB / 393.5 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001281/0.4279, allocations: 215.8 kB / 393.7 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008758/0.4288, allocations: 0.666 MB / 394.4 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009193/0.4297, allocations: 0.5199 MB / 394.9 MB, free: 28.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004813/0.4345, allocations: 3.467 MB / 398.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4346, allocations: 0 / 398.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.4346, allocations: 0 / 398.4 MB, free: 25.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001457/0.4347, allocations: 0 / 398.4 MB, free: 25.02 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.008092/0.4428, allocations: 2.601 MB / 401 MB, free: 22.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.4429, allocations: 8.031 kB / 401 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009921/0.4439, allocations: 324.8 kB / 401.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001205/0.4451, allocations: 308.6 kB / 401.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003941/0.4491, allocations: 1.485 MB / 403.1 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.4494, allocations: 168.4 kB / 403.2 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006957/0.4501, allocations: 227.8 kB / 403.5 MB, free: 19.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00786/0.4579, allocations: 2.886 MB / 406.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.4581, allocations: 3.938 kB / 406.3 MB, free: 16.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/0.4584, allocations: 95.94 kB / 406.4 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.4586, allocations: 120.3 kB / 406.6 MB, free: 16.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007465/0.4661, allocations: 2.434 MB / 409 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02166/0.4878, allocations: 9.095 MB / 418.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003536/0.4913, allocations: 1.713 MB / 419.8 MB, free: 2.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003757/0.4918, allocations: 207.2 kB / 420 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.4918, allocations: 39.56 kB / 420 MB, free: 2.648 MB / 298.7 MB Notification: Performance of pre-optimization done (n=105): time 3.646e-06/0.4918, allocations: 3.938 kB / 420 MB, free: 2.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.02902/0.5209, allocations: 7.513 MB / 427.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.521, allocations: 64.41 kB / 427.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.5245, allocations: 1.499 MB / 429.1 MB, free: 9.402 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002831/0.5248, allocations: 49.7 kB / 429.2 MB, free: 9.348 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.5259, allocations: 1.054 MB / 430.2 MB, free: 8.281 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006956/0.5267, allocations: 437.6 kB / 430.6 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.5268, allocations: 32 kB / 430.7 MB, free: 7.816 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/0.5271, allocations: 382.7 kB / 431 MB, free: 7.434 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002367/0.5295, allocations: 0.7535 MB / 431.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/0.5324, allocations: 1.169 MB / 433 MB, free: 5.336 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002835/0.5352, allocations: 0.9354 MB / 433.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/0.5353, allocations: 4 kB / 433.9 MB, free: 4.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.008077/0.5434, allocations: 2.537 MB / 436.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.97e-05/0.5435, allocations: 20.92 kB / 436.5 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/0.5435, allocations: 12 kB / 436.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.546, allocations: 0.545 MB / 437 MB, free: 1.254 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/0.5486, allocations: 351.5 kB / 437.4 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/0.5623, allocations: 6.518 MB / 443.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/0.5646, allocations: 112 kB / 444 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000232/0.5649, allocations: 63.98 kB / 444.1 MB, free: 9.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * 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: 2 * 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: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002143/0.567, allocations: 0.7202 MB / 444.8 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005885/0.5676, allocations: 173.8 kB / 444.9 MB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007691/0.5753, allocations: 2.337 MB / 447.3 MB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.408e-05/0.5754, allocations: 12 kB / 447.3 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.5754, allocations: 4 kB / 447.3 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.521e-05/0.5755, allocations: 11.97 kB / 447.3 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.5902, allocations: 4.849 MB / 452.2 MB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/0.5903, allocations: 4.281 kB / 452.2 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/0.5923, allocations: 211.7 kB / 452.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002896/0.5952, allocations: 0.5761 MB / 452.9 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.5955, allocations: 31.97 kB / 453 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/0.6112, allocations: 7.995 MB / 461 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.6112, allocations: 7.938 kB / 461 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009847/0.6211, allocations: 3.517 MB / 464.5 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.6225, allocations: 398.9 kB / 464.9 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004359/0.623, allocations: 28 kB / 464.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/0.625, allocations: 99.89 kB / 465 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005807/0.6256, allocations: 96.75 kB / 465.1 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/0.6258, allocations: 39.98 kB / 465.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002852/0.6286, allocations: 1.012 MB / 466.2 MB, free: 3.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.6287, allocations: 0 / 466.2 MB, free: 3.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002823/0.6315, allocations: 0.5038 MB / 466.7 MB, free: 2.656 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01088/0.6424, allocations: 4.706 MB / 471.4 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006883/0.6494, allocations: 2.363 MB / 473.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.6494, allocations: 3.938 kB / 473.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004473/0.6539, allocations: 1.478 MB / 475.2 MB, free: 9.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003365/0.6573, allocations: 438.4 kB / 475.6 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04658/0.7039, allocations: 22.93 MB / 498.6 MB, free: 1.668 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00247/0.7064, allocations: 1.894 MB / 0.4887 GB, free: 15.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00206/0.7085, allocations: 0.8742 MB / 0.4896 GB, free: 14.86 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/0.7085, allocations: 0 / 0.4896 GB, free: 14.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.039/4.747, allocations: 71.21 MB / 0.5591 GB, free: 74.85 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat