Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.0008293/0.0008295, allocations: 88.62 kB / 16.31 MB, free: 6.457 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.0008862/0.0008862, allocations: 183.1 kB / 17.21 MB, free: 6.328 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.405/1.405, allocations: 223.2 MB / 241.2 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002527, allocations: 6.375 kB / 300.9 MB, free: 6.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.0897, allocations: 50.42 MB / 351.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01277/0.1025, allocations: 12 MB / 363.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008514/0.1111, allocations: 4.106 MB / 367.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.1131, allocations: 75.69 kB / 367.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.1153, allocations: 0.7418 MB / 368.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00312/0.1184, allocations: 1.08 MB / 369.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1201, allocations: 0.6116 MB / 370 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005545/0.1257, allocations: 4.049 MB / 374 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003318/0.129, allocations: 2.206 MB / 376.2 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.1314, allocations: 1.3 MB / 377.5 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002542/0.134, allocations: 1.611 MB / 379.1 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004767/0.1344, allocations: 212 kB / 379.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.1357, allocations: 391.8 kB / 379.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000823/0.1366, allocations: 0.7473 MB / 380.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009461/0.1375, allocations: 0.7382 MB / 381.2 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006611/0.1441, allocations: 5.485 MB / 386.7 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1442, allocations: 0 / 386.7 MB, free: 8.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.1442, allocations: 0 / 386.7 MB, free: 8.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001833/0.1444, allocations: 0 / 386.7 MB, free: 8.277 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01024/0.1546, allocations: 3.743 MB / 390.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.1547, allocations: 8.031 kB / 390.4 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00121/0.1559, allocations: 459.5 kB / 390.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004279/0.1602, allocations: 0.8232 MB / 391.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004562/0.1648, allocations: 2.271 MB / 394 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.165, allocations: 242.5 kB / 394.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005948/0.1656, allocations: 319.9 kB / 394.5 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007858/0.1735, allocations: 4.247 MB / 398.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.49e-05/0.1736, allocations: 0 / 398.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/0.1739, allocations: 132 kB / 398.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.1741, allocations: 150.4 kB / 399.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006841/0.1809, allocations: 3.59 MB / 402.6 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02247/0.2034, allocations: 13.93 MB / 416.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006422/0.2099, allocations: 6.536 MB / 423.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002368/0.2123, allocations: 1.402 MB / 424.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2083/0.4206, allocations: 3.636 MB / 428.1 MB, free: 60.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.4207, allocations: 52.27 kB / 428.2 MB, free: 60.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 4.007e-06/0.4207, allocations: 3 kB / 428.2 MB, free: 60.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01111/0.4318, allocations: 5.937 MB / 434.1 MB, free: 58.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.4319, allocations: 69.25 kB / 434.2 MB, free: 58.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00306/0.435, allocations: 1.767 MB / 436 MB, free: 58.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000166/0.4352, allocations: 49.95 kB / 436 MB, free: 58.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.4364, allocations: 1.44 MB / 437.5 MB, free: 58.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004456/0.4368, allocations: 479.6 kB / 437.9 MB, free: 57.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.4369, allocations: 33.75 kB / 438 MB, free: 57.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4371, allocations: 371.9 kB / 438.3 MB, free: 57.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.4382, allocations: 0.6845 MB / 439 MB, free: 57.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.4394, allocations: 1.194 MB / 440.2 MB, free: 56.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.4407, allocations: 0.8999 MB / 441.1 MB, free: 56.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4407, allocations: 5.125 kB / 441.1 MB, free: 56.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00388/0.4446, allocations: 2.528 MB / 443.6 MB, free: 54.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.4446, allocations: 11.88 kB / 443.6 MB, free: 54.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.294e-05/0.4447, allocations: 21.91 kB / 443.7 MB, free: 54.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008293/0.4455, allocations: 371.8 kB / 444 MB, free: 54.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.4467, allocations: 379.4 kB / 444.4 MB, free: 54.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005496/0.4522, allocations: 7.675 MB / 452.1 MB, free: 48.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.4538, allocations: 74.69 kB / 452.2 MB, free: 48.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.4539, allocations: 71.03 kB / 452.2 MB, free: 48.11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (192): * Single equations (assignments): 187 * 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 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001802/0.4558, allocations: 1.005 MB / 453.2 MB, free: 47.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.4562, allocations: 193 kB / 453.4 MB, free: 47.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/0.4596, allocations: 2.292 MB / 455.7 MB, free: 46.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.4596, allocations: 11.31 kB / 455.7 MB, free: 46.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.4596, allocations: 7.812 kB / 455.7 MB, free: 46.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.4597, allocations: 11.11 kB / 455.7 MB, free: 46.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006743/0.4664, allocations: 5.068 MB / 460.8 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4664, allocations: 7.938 kB / 460.8 MB, free: 42.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.4672, allocations: 179.8 kB / 461 MB, free: 42.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001187/0.4684, allocations: 0.5281 MB / 461.5 MB, free: 41.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-05/0.4685, allocations: 39.98 kB / 461.6 MB, free: 41.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008425/0.4769, allocations: 12.08 MB / 473.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.4769, allocations: 7.969 kB / 473.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/0.4811, allocations: 3.211 MB / 476.9 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008009/0.482, allocations: 426.6 kB / 477.3 MB, free: 25.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.4822, allocations: 36 kB / 477.3 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007598/0.483, allocations: 67.95 kB / 477.4 MB, free: 25.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.4832, allocations: 105.8 kB / 477.5 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-05/0.4833, allocations: 43.98 kB / 477.5 MB, free: 24.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.4847, allocations: 1.207 MB / 478.7 MB, free: 23.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4847, allocations: 0 / 478.7 MB, free: 23.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002/0.4867, allocations: 0.5781 MB / 479.3 MB, free: 23.2 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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): 80 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004062/0.4908, allocations: 3.839 MB / 483.1 MB, free: 19.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00294/0.4938, allocations: 2.341 MB / 485.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.4938, allocations: 5 kB / 485.5 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/0.4959, allocations: 1.757 MB / 487.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.4981, allocations: 0.5154 MB / 487.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02798/0.5261, allocations: 16.66 MB / 0.4926 GB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/0.5281, allocations: 2.307 MB / 0.4949 GB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001454/0.5296, allocations: 405 kB / 0.4952 GB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001447/0.5311, allocations: 1.128 MB / 0.4963 GB, free: 8.965 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5311, allocations: 0 / 0.4963 GB, free: 8.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07792/0.609, allocations: 49.26 MB / 0.5444 GB, free: 8.207 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.6092, allocations: 250.3 kB / 0.5447 GB, free: 7.879 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.921/3.53, allocations: 4.062 kB / 0.5447 GB, free: 7.875 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat