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.0007889/0.000789, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.0008623/0.0008622, allocations: 179.9 kB / 17.21 MB, free: 6.32 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.511/1.511, allocations: 223.3 MB / 241.2 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002504/0.0002506, allocations: 8 kB / 300.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 50.42 MB / 351.4 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.00891/0.112, allocations: 8.575 MB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005255/0.1173, allocations: 2.841 MB / 362.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.1185, allocations: 43.81 kB / 362.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.1199, allocations: 0.5009 MB / 363.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001851/0.1218, allocations: 0.6291 MB / 363.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.1225, allocations: 243.7 kB / 364.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002667/0.1251, allocations: 2.467 MB / 366.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.1267, allocations: 1.228 MB / 367.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.128, allocations: 0.8288 MB / 368.7 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/0.1295, allocations: 1.089 MB / 369.8 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002539/0.1298, allocations: 120 kB / 369.9 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005171/0.1303, allocations: 187.9 kB / 370.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005644/0.1309, allocations: 0.5918 MB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.215/0.3459, allocations: 455.1 kB / 371.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005852/0.3519, allocations: 2.9 MB / 374 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.3519, allocations: 0 / 374 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.839e-06/0.3519, allocations: 1.359 kB / 374 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001856/0.3521, allocations: 0 / 374 MB, free: 11.71 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.008039/0.3602, allocations: 2.202 MB / 376.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.77e-05/0.3603, allocations: 10.59 kB / 376.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007898/0.3611, allocations: 281.5 kB / 376.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008941/0.362, allocations: 263.1 kB / 376.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.3645, allocations: 1.273 MB / 378 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.3647, allocations: 144.1 kB / 378.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003581/0.365, allocations: 193.3 kB / 378.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005345/0.3704, allocations: 2.409 MB / 380.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.964e-05/0.3705, allocations: 9.875 kB / 380.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001923/0.3707, allocations: 76.34 kB / 380.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.3708, allocations: 86.38 kB / 381 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003711/0.3745, allocations: 1.957 MB / 382.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/0.3865, allocations: 7.896 MB / 390.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.388, allocations: 1.213 MB / 392 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.3895, allocations: 0.949 MB / 393 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002217/0.3897, allocations: 126.4 kB / 393.1 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.3898, allocations: 44.19 kB / 393.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.755e-06/0.3898, allocations: 4 kB / 393.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=111): time 0.01132/0.4011, allocations: 5.912 MB / 399.1 MB, free: 1.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.4012, allocations: 63.53 kB / 399.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.403, allocations: 1.293 MB / 400.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.882e-05/0.4031, allocations: 44.27 kB / 400.5 MB, free: 1.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004535/0.4035, allocations: 0.9219 MB / 401.4 MB, free: 284 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.4038, allocations: 391 kB / 401.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.4039, allocations: 30.16 kB / 401.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.404, allocations: 365.1 kB / 402.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009058/0.4049, allocations: 0.6342 MB / 402.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.4061, allocations: 0.9965 MB / 403.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.4072, allocations: 0.79 MB / 404.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.4072, allocations: 8 kB / 404.6 MB, free: 13.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003565/0.4108, allocations: 2.236 MB / 406.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.4108, allocations: 12 kB / 406.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4109, allocations: 15.98 kB / 406.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001142/0.412, allocations: 487.2 kB / 407.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.4131, allocations: 309.1 kB / 407.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006499/0.4196, allocations: 6.53 MB / 414.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.4211, allocations: 95.84 kB / 414.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.4212, allocations: 59.98 kB / 414.3 MB, free: 3.41 MB / 318.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.001414/0.4226, allocations: 0.5944 MB / 414.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/0.423, allocations: 146.2 kB / 415 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.4263, allocations: 1.966 MB / 417 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.4264, allocations: 10.73 kB / 417 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.4264, allocations: 12 kB / 417 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.4264, allocations: 3.984 kB / 417 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00685/0.4333, allocations: 4.125 MB / 421.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/0.4333, allocations: 4 kB / 421.2 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007723/0.4341, allocations: 185.7 kB / 421.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.4354, allocations: 0.5404 MB / 421.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/0.4355, allocations: 31.98 kB / 421.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009812/0.4453, allocations: 8.041 MB / 429.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.4454, allocations: 0 / 429.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004922/0.4503, allocations: 2.85 MB / 432.8 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009956/0.4514, allocations: 352.9 kB / 433.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.4516, allocations: 31.98 kB / 433.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007366/0.4523, allocations: 75.98 kB / 433.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.4526, allocations: 87.77 kB / 433.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.015e-05/0.4526, allocations: 35.98 kB / 433.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001491/0.4541, allocations: 0.8839 MB / 434.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4541, allocations: 0 / 434.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001786/0.4559, allocations: 443.9 kB / 434.7 MB, free: 14.43 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.004898/0.4608, allocations: 3.443 MB / 438.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.4647, allocations: 2.231 MB / 440.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.4647, allocations: 4.125 kB / 440.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.4672, allocations: 1.507 MB / 441.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/0.4698, allocations: 403.4 kB / 442.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02783/0.4976, allocations: 12.25 MB / 454.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.4995, allocations: 1.65 MB / 456.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.5008, allocations: 320.8 kB / 456.5 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.5018, allocations: 0.718 MB / 457.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5018, allocations: 0 / 457.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07228/0.5741, allocations: 36.67 MB / 493.9 MB, free: 3.148 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003357/0.5745, allocations: 231.9 kB / 494.1 MB, free: 2.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.684/3.258, allocations: 2.5 kB / 494.1 MB, free: 2.91 MB / 398.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