Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 92.86 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 183.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.0002959, allocations: 7.719 kB / 300.8 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1194, allocations: 50.42 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.008543/0.128, allocations: 7.853 MB / 359.1 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005882/0.1339, allocations: 2.924 MB / 362 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.1353, allocations: 43.81 kB / 362.1 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.1368, allocations: 0.5169 MB / 362.6 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002184/0.139, allocations: 0.6582 MB / 363.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007012/0.1397, allocations: 239.6 kB / 363.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002261/0.142, allocations: 1.588 MB / 365 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.1434, allocations: 1.213 MB / 366.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009189/0.1444, allocations: 0.7628 MB / 367 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.1455, allocations: 0.9494 MB / 368 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001945/0.1457, allocations: 123.9 kB / 368.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004701/0.1462, allocations: 187.8 kB / 368.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000555/0.1468, allocations: 0.553 MB / 368.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004342/0.1472, allocations: 456.6 kB / 369.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.1496, allocations: 2.875 MB / 372.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.1496, allocations: 4 kB / 372.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1496, allocations: 0 / 372.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.253e-05/0.1497, allocations: 0 / 372.2 MB, free: 6.555 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.003855/0.1535, allocations: 2.193 MB / 374.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1536, allocations: 8.031 kB / 374.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003408/0.1539, allocations: 274.5 kB / 374.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000593/0.1545, allocations: 265.1 kB / 374.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.1566, allocations: 1.283 MB / 376.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/0.1567, allocations: 147.8 kB / 376.3 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002595/0.157, allocations: 199.8 kB / 376.5 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00373/0.1607, allocations: 2.387 MB / 378.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.162e-05/0.1608, allocations: 7.906 kB / 378.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.161, allocations: 76 kB / 379 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.1611, allocations: 91.62 kB / 379.1 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/0.1643, allocations: 1.951 MB / 381 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01174/0.176, allocations: 7.848 MB / 388.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.1776, allocations: 1.231 MB / 390.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.1779, allocations: 118.1 kB / 390.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.178, allocations: 47.5 kB / 390.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of pre-optimization done (n=95): time 2.464e-06/0.178, allocations: 0 / 390.3 MB, free: 3.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.01223/0.1902, allocations: 5.882 MB / 396.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.1903, allocations: 64.36 kB / 396.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.192, allocations: 1.259 MB / 397.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.193e-05/0.1921, allocations: 45.7 kB / 397.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006082/0.1927, allocations: 0.912 MB / 398.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.193, allocations: 390.4 kB / 398.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.864e-05/0.193, allocations: 28 kB / 398.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1932, allocations: 357.9 kB / 399.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009388/0.1941, allocations: 0.6325 MB / 399.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.1952, allocations: 0.9964 MB / 400.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.1963, allocations: 0.7915 MB / 401.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1963, allocations: 0 / 401.6 MB, free: 8.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003652/0.2, allocations: 2.229 MB / 403.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.2, allocations: 8 kB / 403.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.2001, allocations: 12 kB / 403.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.2013, allocations: 496.1 kB / 404.3 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.2023, allocations: 295.6 kB / 404.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006453/0.2088, allocations: 6.604 MB / 411.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.2101, allocations: 91.92 kB / 411.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.2103, allocations: 51.95 kB / 411.4 MB, free: 14.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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: 3 * 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: 3 {(2,100.0%) 12,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001224/0.2115, allocations: 0.6106 MB / 412 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/0.2118, allocations: 142.2 kB / 412.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/0.2149, allocations: 1.953 MB / 414.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.215, allocations: 12 kB / 414.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.215, allocations: 7.953 kB / 414.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.215, allocations: 7.969 kB / 414.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006678/0.2217, allocations: 4.064 MB / 418.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.2217, allocations: 4 kB / 418.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007997/0.2225, allocations: 184 kB / 418.3 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001336/0.2239, allocations: 0.5309 MB / 418.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.224, allocations: 31.98 kB / 418.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.229/0.453, allocations: 8.116 MB / 427 MB, free: 61.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.453, allocations: 2.406 kB / 427 MB, free: 61.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00462/0.4577, allocations: 2.967 MB / 430 MB, free: 60.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009116/0.4586, allocations: 356.9 kB / 430.3 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.4588, allocations: 29.7 kB / 430.4 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007551/0.4596, allocations: 73.2 kB / 430.4 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/0.4599, allocations: 82.25 kB / 430.5 MB, free: 60.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.224e-05/0.46, allocations: 33.3 kB / 430.5 MB, free: 60.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001543/0.4615, allocations: 0.8501 MB / 431.4 MB, free: 60.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4615, allocations: 0 / 431.4 MB, free: 60.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00196/0.4635, allocations: 440.9 kB / 431.8 MB, free: 60.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00525/0.4687, allocations: 4.172 MB / 436 MB, free: 59.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003701/0.4725, allocations: 2.222 MB / 438.2 MB, free: 58.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.4725, allocations: 1.531 kB / 438.2 MB, free: 58.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002218/0.4747, allocations: 1.5 MB / 439.7 MB, free: 57.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.4767, allocations: 375.7 kB / 440.1 MB, free: 57.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/0.4966, allocations: 19.28 MB / 459.4 MB, free: 43.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.4978, allocations: 1.686 MB / 461.1 MB, free: 42.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.4989, allocations: 328.8 kB / 461.4 MB, free: 42.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007955/0.4997, allocations: 0.7063 MB / 462.1 MB, free: 41.36 MB / 350.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4997, allocations: 0 / 462.1 MB, free: 41.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05316/0.5529, allocations: 36.29 MB / 498.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.5531, allocations: 218.4 kB / 498.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.641/3.194, allocations: 0 / 498.6 MB, free: 5.277 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat