Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_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.001537/0.001541, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.054/2.054, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001893/0.001892, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006004/0.0006, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1017, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter): time 0.01303/0.1148, allocations: 7.118 MB / 381.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007631/0.1225, allocations: 2.773 MB / 384.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.1242, allocations: 35.81 kB / 384.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.1267, allocations: 0.5053 MB / 385.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003061/0.1298, allocations: 0.5881 MB / 385.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1313, allocations: 219.6 kB / 385.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003942/0.1352, allocations: 1.458 MB / 387.3 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002605/0.1379, allocations: 1.192 MB / 388.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.1397, allocations: 0.7006 MB / 389.2 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2645/0.4042, allocations: 0.9137 MB / 390.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007887/0.4051, allocations: 115.5 kB / 390.3 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.4065, allocations: 181.3 kB / 390.4 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00145/0.408, allocations: 0.5488 MB / 391 MB, free: 10.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.4093, allocations: 435.7 kB / 391.4 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005695/0.4151, allocations: 2.796 MB / 394.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.4151, allocations: 0 / 394.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.958e-06/0.4151, allocations: 0 / 394.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001423/0.4153, allocations: 6.125 kB / 394.2 MB, free: 10.25 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.008374/0.4237, allocations: 2.117 MB / 396.3 MB, free: 9.23 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.4237, allocations: 9.281 kB / 396.3 MB, free: 9.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001343/0.4251, allocations: 267.3 kB / 396.6 MB, free: 9.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/0.427, allocations: 256.5 kB / 396.8 MB, free: 9.066 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004341/0.4314, allocations: 1.185 MB / 398 MB, free: 8.715 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002241/0.4317, allocations: 136.3 kB / 398.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008706/0.4326, allocations: 183.2 kB / 398.3 MB, free: 8.707 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008511/0.4411, allocations: 2.35 MB / 400.7 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.4413, allocations: 6.906 kB / 400.7 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003774/0.4417, allocations: 74.2 kB / 400.8 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.4419, allocations: 90.53 kB / 400.9 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007702/0.4496, allocations: 1.968 MB / 402.8 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02156/0.4712, allocations: 7.135 MB / 410 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003349/0.4746, allocations: 1.278 MB / 411.2 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003501/0.475, allocations: 126.4 kB / 411.4 MB, free: 3.449 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.4751, allocations: 43.52 kB / 411.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of pre-optimization done (n=87): time 4.328e-06/0.4751, allocations: 0 / 411.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of matching and sorting (n=107): time 0.0281/0.5032, allocations: 6.986 MB / 418.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.5033, allocations: 68.36 kB / 418.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003262/0.5066, allocations: 1.156 MB / 419.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003218/0.507, allocations: 41.7 kB / 419.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.508, allocations: 0.8464 MB / 420.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007216/0.5088, allocations: 379.8 kB / 420.9 MB, free: 12.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.5089, allocations: 24 kB / 420.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000234/0.5092, allocations: 362.8 kB / 421.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.5115, allocations: 0.6545 MB / 421.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.5142, allocations: 0.9615 MB / 422.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003503/0.5177, allocations: 0.8024 MB / 423.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.785e-05/0.5178, allocations: 0 / 423.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.007779/0.5256, allocations: 2.273 MB / 425.9 MB, free: 7.582 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.5257, allocations: 8 kB / 426 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.5257, allocations: 8 kB / 426 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002921/0.5287, allocations: 0.5965 MB / 426.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00217/0.5309, allocations: 270.6 kB / 426.8 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01471/0.5457, allocations: 6.424 MB / 433.2 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.5477, allocations: 89.94 kB / 433.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.548, allocations: 48 kB / 433.4 MB, free: 15.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002033/0.5501, allocations: 0.5988 MB / 434 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/0.5506, allocations: 142.3 kB / 434.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007204/0.5579, allocations: 2.172 MB / 436.3 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.727e-05/0.5579, allocations: 15.98 kB / 436.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/0.558, allocations: 4 kB / 436.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-05/0.558, allocations: 3.984 kB / 436.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/0.5727, allocations: 4.277 MB / 440.6 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.078e-05/0.5728, allocations: 4 kB / 440.6 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/0.5745, allocations: 178.7 kB / 440.8 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003442/0.578, allocations: 0.6473 MB / 441.4 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000268/0.5783, allocations: 35.97 kB / 441.4 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01596/0.5943, allocations: 7.918 MB / 449.4 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.5944, allocations: 7.953 kB / 449.4 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.6044, allocations: 3.21 MB / 452.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/0.6059, allocations: 347.2 kB / 452.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006399/0.6066, allocations: 31.98 kB / 453 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00191/0.6086, allocations: 83.91 kB / 453 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005223/0.6092, allocations: 94.69 kB / 453.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.6093, allocations: 32 kB / 453.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002305/0.6116, allocations: 0.7913 MB / 454 MB, free: 10.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6117, allocations: 0 / 454 MB, free: 10.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003211/0.6149, allocations: 428 kB / 454.4 MB, free: 10.42 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (83): * Single equations (assignments): 79 * 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: 3 * 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: 3 {(5,84.0%) 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.01151/0.6265, allocations: 4.418 MB / 458.8 MB, free: 5.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006918/0.6335, allocations: 2.233 MB / 461 MB, free: 3.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.6335, allocations: 4 kB / 461 MB, free: 3.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004775/0.6383, allocations: 1.494 MB / 462.5 MB, free: 2.125 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003275/0.6416, allocations: 338.5 kB / 462.8 MB, free: 1.801 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04163/0.6833, allocations: 17.64 MB / 480.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002161/0.6855, allocations: 1.659 MB / 482.1 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/0.6873, allocations: 0.6906 MB / 482.8 MB, free: 13.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6873, allocations: 0 / 482.8 MB, free: 13.31 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.177/4.864, allocations: 65.77 MB / 0.5357 GB, free: 135.4 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat