Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",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.0008548/0.0008551, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.0008315/0.0008315, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.448/1.448, allocations: 223.3 MB / 241.2 MB, free: 5.398 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003369, allocations: 6.219 kB / 300.9 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1087, allocations: 50.43 MB / 351.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.008662/0.1174, allocations: 7.859 MB / 359.2 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006412/0.1239, allocations: 2.712 MB / 361.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00148/0.1254, allocations: 35.88 kB / 361.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00157/0.127, allocations: 0.4893 MB / 362.4 MB, free: 416 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002137/0.1292, allocations: 0.6177 MB / 363.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007047/0.1299, allocations: 199.7 kB / 363.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003129/0.133, allocations: 2.44 MB / 365.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001525/0.1346, allocations: 1.235 MB / 366.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.1358, allocations: 0.8053 MB / 367.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001452/0.1373, allocations: 1.117 MB / 368.8 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.1375, allocations: 120 kB / 369 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004616/0.138, allocations: 183.9 kB / 369.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005886/0.1386, allocations: 0.6153 MB / 369.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.139, allocations: 452.6 kB / 370.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002267/0.1412, allocations: 2.957 MB / 373.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.1413, allocations: 0 / 373.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1413, allocations: 7.938 kB / 373.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-05/0.1413, allocations: 0 / 373.2 MB, free: 5.605 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.003664/0.145, allocations: 2.228 MB / 375.4 MB, free: 3.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1451, allocations: 8.031 kB / 375.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003231/0.1454, allocations: 265.8 kB / 375.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005673/0.146, allocations: 257.2 kB / 375.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.1479, allocations: 1.303 MB / 377.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.344e-05/0.148, allocations: 131.6 kB / 377.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.1482, allocations: 191.8 kB / 377.5 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003636/0.1519, allocations: 2.398 MB / 379.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.432e-05/0.1519, allocations: 15.89 kB / 379.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.1521, allocations: 75.98 kB / 380 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-05/0.1522, allocations: 83.5 kB / 380.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003188/0.1554, allocations: 2.024 MB / 382.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.166, allocations: 7.495 MB / 389.6 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1678, allocations: 1.279 MB / 390.9 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/0.1693, allocations: 0.9197 MB / 391.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002413/0.1696, allocations: 122.1 kB / 391.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.1696, allocations: 51.52 kB / 392 MB, free: 2.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=84): time 3.316e-06/0.1696, allocations: 0 / 392 MB, free: 2.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=100): time 0.00931/0.1789, allocations: 4.909 MB / 396.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.179, allocations: 60.41 kB / 397 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.181, allocations: 1.361 MB / 398.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.1811, allocations: 45.7 kB / 398.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006877/0.1818, allocations: 0.8969 MB / 399.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003027/0.1821, allocations: 350.9 kB / 399.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/0.1822, allocations: 24 kB / 399.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1823, allocations: 357.9 kB / 400 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009533/0.1833, allocations: 0.635 MB / 400.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1844, allocations: 0.9337 MB / 401.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.1855, allocations: 0.7681 MB / 402.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.1855, allocations: 0 / 402.3 MB, free: 7.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003961/0.1895, allocations: 2.394 MB / 404.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.1895, allocations: 11.95 kB / 404.7 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.1895, allocations: 8 kB / 404.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001722/0.1913, allocations: 0.7121 MB / 405.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008387/0.1921, allocations: 243.5 kB / 405.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009751/0.2019, allocations: 8.002 MB / 413.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.2031, allocations: 83.91 kB / 413.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.2032, allocations: 44 kB / 413.8 MB, free: 11.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001174/0.2044, allocations: 0.6379 MB / 414.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003804/0.2048, allocations: 146.2 kB / 414.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.2084, allocations: 1.905 MB / 416.5 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.2084, allocations: 12 kB / 416.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-05/0.2084, allocations: 7.953 kB / 416.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.2085, allocations: 3.984 kB / 416.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007919/0.2164, allocations: 4.014 MB / 420.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.2164, allocations: 4 kB / 420.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008015/0.2172, allocations: 192 kB / 420.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.2185, allocations: 462.8 kB / 421.2 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.742e-05/0.2186, allocations: 31.98 kB / 421.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2175/0.4361, allocations: 6.141 MB / 427.3 MB, free: 61.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4362, allocations: 3.219 kB / 427.3 MB, free: 61.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004285/0.4405, allocations: 2.791 MB / 430.1 MB, free: 61.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000762/0.4412, allocations: 362.2 kB / 430.5 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001803/0.4414, allocations: 21.66 kB / 430.5 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006962/0.4421, allocations: 77.56 kB / 430.6 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002374/0.4424, allocations: 84.61 kB / 430.7 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.029e-05/0.4425, allocations: 30.52 kB / 430.7 MB, free: 61.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001586/0.4441, allocations: 0.9443 MB / 431.6 MB, free: 61.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4441, allocations: 0.5312 kB / 431.6 MB, free: 61.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001708/0.4458, allocations: 436.5 kB / 432.1 MB, free: 61.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (84): * Single equations (assignments): 80 * 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 {(2,100.0%) 12,(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.004713/0.4505, allocations: 3.377 MB / 435.4 MB, free: 60.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004171/0.4547, allocations: 2.009 MB / 437.5 MB, free: 60.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4547, allocations: 1.312 kB / 437.5 MB, free: 60.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001998/0.4567, allocations: 1.358 MB / 438.8 MB, free: 59.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.4586, allocations: 360.9 kB / 439.2 MB, free: 59.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.476, allocations: 12.57 MB / 451.7 MB, free: 52.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009992/0.4771, allocations: 1.683 MB / 453.4 MB, free: 51.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009549/0.4781, allocations: 320 kB / 453.7 MB, free: 50.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007357/0.4788, allocations: 0.6984 MB / 454.4 MB, free: 50.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4788, allocations: 0 / 454.4 MB, free: 50.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08135/0.5602, allocations: 36.9 MB / 491.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.5604, allocations: 235.1 kB / 491.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.667/3.227, allocations: 0 / 491.6 MB, free: 13.41 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat