Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",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.0011/0.0011, allocations: 94.56 kB / 16.3 MB, free: 6.461 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.001273/0.001273, allocations: 182.6 kB / 17.2 MB, free: 6.344 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.51/1.51, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003086, allocations: 5.719 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1202, 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_DOL): time 0.009665/0.1299, allocations: 7.603 MB / 358.8 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006224/0.1361, allocations: 2.885 MB / 361.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.1381, allocations: 39.81 kB / 361.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002091/0.1402, allocations: 0.5247 MB / 362.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003342/0.1436, allocations: 0.6465 MB / 362.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.1446, allocations: 223.6 kB / 363.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003649/0.1483, allocations: 1.699 MB / 364.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.1508, allocations: 1.378 MB / 366.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.1526, allocations: 0.8173 MB / 367 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.1549, allocations: 1.058 MB / 368.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007078/0.1556, allocations: 128 kB / 368.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1568, allocations: 191.9 kB / 368.4 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.1579, allocations: 0.6387 MB / 369 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00103/0.1589, allocations: 0.4926 MB / 369.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003848/0.1628, allocations: 3.233 MB / 372.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1628, allocations: 0 / 372.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.746e-06/0.1628, allocations: 0 / 372.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.1629, allocations: 0 / 372.8 MB, free: 5.93 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005341/0.1683, allocations: 2.432 MB / 375.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.1683, allocations: 8.031 kB / 375.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005335/0.1689, allocations: 303.2 kB / 375.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000684/0.1696, allocations: 292.8 kB / 375.8 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002623/0.1722, allocations: 1.453 MB / 377.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.1723, allocations: 148 kB / 377.4 MB, free: 1.168 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002962/0.1726, allocations: 211.8 kB / 377.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004733/0.1774, allocations: 2.708 MB / 380.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.437e-05/0.1775, allocations: 4 kB / 380.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/0.1777, allocations: 80 kB / 380.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/0.1778, allocations: 103.9 kB / 380.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004173/0.182, allocations: 2.326 MB / 382.8 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01357/0.1956, allocations: 8.419 MB / 391.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00222/0.1978, allocations: 1.779 MB / 393 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002606/0.1981, allocations: 126.9 kB / 393.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.1982, allocations: 43.5 kB / 393.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 2.756e-06/0.1982, allocations: 0 / 393.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.01352/0.2117, allocations: 6.309 MB / 399.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.2118, allocations: 64.41 kB / 399.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.214, allocations: 1.465 MB / 401 MB, free: 8.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.642e-05/0.2141, allocations: 49.7 kB / 401.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007698/0.2149, allocations: 0.9834 MB / 402.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/0.2153, allocations: 417.9 kB / 402.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.27e-05/0.2154, allocations: 24 kB / 402.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.2156, allocations: 361.9 kB / 402.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.2169, allocations: 0.7456 MB / 403.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.2184, allocations: 1.067 MB / 404.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.2197, allocations: 0.8847 MB / 405.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.2197, allocations: 4 kB / 405.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004015/0.2237, allocations: 2.369 MB / 407.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.983e-05/0.2237, allocations: 11.95 kB / 407.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.2238, allocations: 12 kB / 407.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.2248, allocations: 411.4 kB / 408.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.226, allocations: 323.5 kB / 408.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005416/0.2314, allocations: 4.746 MB / 413.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.2327, allocations: 91.81 kB / 413.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.2328, allocations: 52 kB / 413.5 MB, free: 11.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * 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 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001371/0.2342, allocations: 0.7159 MB / 414.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.2345, allocations: 158 kB / 414.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003794/0.2383, allocations: 2.164 MB / 416.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.2384, allocations: 12 kB / 416.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.2384, allocations: 7.938 kB / 416.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.2384, allocations: 7.938 kB / 416.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007972/0.2464, allocations: 4.567 MB / 421.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.2464, allocations: 0 / 421.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009676/0.2474, allocations: 227.9 kB / 421.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.2486, allocations: 462.9 kB / 421.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.2487, allocations: 31.98 kB / 421.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.25/0.4988, allocations: 6.273 MB / 428.1 MB, free: 61.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.4988, allocations: 1.781 kB / 428.1 MB, free: 61.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00563/0.5045, allocations: 3.349 MB / 431.5 MB, free: 61.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5059, allocations: 396.1 kB / 431.9 MB, free: 61.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002564/0.5062, allocations: 28.33 kB / 431.9 MB, free: 61.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008844/0.5071, allocations: 87.75 kB / 432 MB, free: 61.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000395/0.5075, allocations: 108.1 kB / 432.1 MB, free: 61.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.804e-05/0.5076, allocations: 32.22 kB / 432.1 MB, free: 61.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002349/0.5099, allocations: 1.006 MB / 433.1 MB, free: 61.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5099, allocations: 0 / 433.1 MB, free: 61.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001962/0.5119, allocations: 458.8 kB / 433.6 MB, free: 61.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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],quadraticLoadTorque.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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.006671/0.5186, allocations: 4.548 MB / 438.1 MB, free: 59.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004241/0.5229, allocations: 2.295 MB / 440.4 MB, free: 59.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.5229, allocations: 3.062 kB / 440.4 MB, free: 59.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.5249, allocations: 1.504 MB / 441.9 MB, free: 58.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.5273, allocations: 414 kB / 442.3 MB, free: 58.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/0.5507, allocations: 19.7 MB / 462 MB, free: 42.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.5523, allocations: 1.865 MB / 463.9 MB, free: 40.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001454/0.5538, allocations: 393.4 kB / 464.3 MB, free: 40.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009591/0.5548, allocations: 0.796 MB / 465.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.193e-06/0.5548, allocations: 0 / 465.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05953/0.6143, allocations: 39.58 MB / 0.4928 GB, free: 64 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.6146, allocations: 222.3 kB / 0.493 GB, free: 15.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.461, allocations: 4 kB / 0.493 GB, free: 15.82 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat