Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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.0015/0.0015, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001682/0.001682, allocations: 195 kB / 18 MB, free: 5.105 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.451/1.451, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 47.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3851, allocations: 49.44 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.04098/0.4261, allocations: 32.85 MB / 433.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02528/0.4514, allocations: 8.962 MB / 442.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01012/0.4616, allocations: 243.2 kB / 442.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02154/0.4832, allocations: 7.95 MB / 450.3 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01577/0.499, allocations: 3.655 MB / 453.9 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008387/0.5074, allocations: 2.095 MB / 456 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02194/0.5293, allocations: 13.01 MB / 469 MB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04036/0.5698, allocations: 22.48 MB / 491.5 MB, free: 13.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01516/0.585, allocations: 6.58 MB / 498.1 MB, free: 6.586 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01498/0.6, allocations: 7.202 MB / 0.4934 GB, free: 15.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006432/0.6065, allocations: 1.883 MB / 0.4953 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008902/0.6154, allocations: 2.246 MB / 0.4975 GB, free: 11.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009215/0.6246, allocations: 3.741 MB / 0.5011 GB, free: 7.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01726/0.6419, allocations: 7.101 MB / 0.5081 GB, free: 360 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03674/0.6787, allocations: 25 MB / 0.5325 GB, free: 7.277 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.6788, allocations: 0 / 0.5325 GB, free: 7.277 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6788, allocations: 0 / 0.5325 GB, free: 7.277 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000808/0.6796, allocations: 0 / 0.5325 GB, free: 7.277 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.5059/1.185, allocations: 14.56 MB / 0.5467 GB, free: 113.9 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/1.186, allocations: 11.88 kB / 0.5467 GB, free: 113.9 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007133/1.193, allocations: 1.512 MB / 0.5482 GB, free: 112.8 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03861/1.231, allocations: 6.8 MB / 0.5548 GB, free: 109.8 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01816/1.25, allocations: 8.078 MB / 0.5627 GB, free: 103.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007546/1.25, allocations: 0.7899 MB / 0.5635 GB, free: 102.4 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004709/1.255, allocations: 1.046 MB / 0.5645 GB, free: 101.4 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0434/1.298, allocations: 17.22 MB / 0.5813 GB, free: 84.13 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005209/1.299, allocations: 19.78 kB / 0.5813 GB, free: 84.11 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003612/1.303, allocations: 439.3 kB / 0.5818 GB, free: 83.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005602/1.303, allocations: 0.6314 MB / 0.5824 GB, free: 83.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03516/1.338, allocations: 16.3 MB / 0.5983 GB, free: 66.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09228/1.431, allocations: 55.15 MB / 0.6522 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02953/1.46, allocations: 31.09 MB / 0.6825 GB, free: 7.855 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008481/1.469, allocations: 4.304 MB / 0.6867 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02359/1.492, allocations: 10.43 MB / 0.6969 GB, free: 9.035 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.115e-05/1.493, allocations: 69.81 kB / 0.697 GB, free: 8.957 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=398): time 8.425e-06/1.493, allocations: 0 / 0.697 GB, free: 8.957 MB / 0.4982 GB Notification: Performance of matching and sorting (n=423): time 0.05401/1.547, allocations: 21.58 MB / 0.718 GB, free: 2.984 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.298e-05/1.547, allocations: 120.7 kB / 0.7181 GB, free: 2.848 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01031/1.557, allocations: 4.669 MB / 0.7227 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007485/1.558, allocations: 97.7 kB / 0.7228 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004274/1.562, allocations: 4.658 MB / 0.7274 GB, free: 9.352 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002277/1.564, allocations: 1.448 MB / 0.7288 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004062/1.569, allocations: 1.132 MB / 0.7299 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001007/1.569, allocations: 309.1 kB / 0.7302 GB, free: 6.434 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005074/1.574, allocations: 2.901 MB / 0.733 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006871/1.581, allocations: 4.953 MB / 0.7378 GB, free: 13.64 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0137/1.594, allocations: 8.341 MB / 0.746 GB, free: 4.363 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/1.594, allocations: 20 kB / 0.746 GB, free: 4.344 MB / 0.545 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.2954/1.89, allocations: 9.725 MB / 0.7555 GB, free: 189.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.522e-05/1.89, allocations: 32.53 kB / 0.7555 GB, free: 189.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001009/1.89, allocations: 65.59 kB / 0.7556 GB, free: 189.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004162/1.894, allocations: 1.649 MB / 0.7572 GB, free: 189.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004776/1.899, allocations: 1.314 MB / 0.7585 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0192/1.918, allocations: 17.75 MB / 0.7758 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005247/1.924, allocations: 326.7 kB / 0.7761 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/1.925, allocations: 282 kB / 0.7764 GB, free: 177.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006654/1.931, allocations: 3.89 MB / 0.7802 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/1.933, allocations: 0.4895 MB / 0.7807 GB, free: 175.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/1.946, allocations: 7.782 MB / 0.7883 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/1.946, allocations: 44.38 kB / 0.7883 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.999e-05/1.946, allocations: 15.62 kB / 0.7883 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.458e-05/1.946, allocations: 23.89 kB / 0.7884 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0309/1.977, allocations: 17.46 MB / 0.8054 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.489e-05/1.977, allocations: 10.25 kB / 0.8054 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003036/1.98, allocations: 0.73 MB / 0.8061 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003928/1.984, allocations: 1.547 MB / 0.8076 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005458/1.985, allocations: 108 kB / 0.8077 GB, free: 155.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01885/2.004, allocations: 21.2 MB / 0.8284 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/2.004, allocations: 15.94 kB / 0.8285 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/2.02, allocations: 11.45 MB / 0.8396 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003353/2.023, allocations: 1.151 MB / 0.8408 GB, free: 121.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009125/2.024, allocations: 95.98 kB / 0.8409 GB, free: 121.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002603/2.027, allocations: 227.8 kB / 0.8411 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009378/2.028, allocations: 330.9 kB / 0.8414 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000284/2.028, allocations: 124 kB / 0.8415 GB, free: 120.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005132/2.033, allocations: 3.177 MB / 0.8446 GB, free: 117.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.01e-07/2.033, allocations: 0 / 0.8446 GB, free: 117.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007277/2.04, allocations: 1.855 MB / 0.8464 GB, free: 115.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01542/2.056, allocations: 12.18 MB / 0.8583 GB, free: 103.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01203/2.068, allocations: 8.136 MB / 0.8663 GB, free: 94.97 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/2.068, allocations: 4 kB / 0.8663 GB, free: 94.97 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007127/2.075, allocations: 4.638 MB / 0.8708 GB, free: 90.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0065/2.082, allocations: 1.296 MB / 0.8721 GB, free: 88.98 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1188/2.2, allocations: 63.81 MB / 0.9344 GB, free: 22.41 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/2.211, allocations: 6.77 MB / 0.941 GB, free: 15.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00649/2.218, allocations: 1.861 MB / 0.9428 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005855/2.224, allocations: 3.92 MB / 0.9466 GB, free: 9.805 MB / 0.545 GB Notification: Performance of SimCode: time 1.012e-06/2.224, allocations: 0 / 0.9466 GB, free: 9.805 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.993/3.217, allocations: 152.2 MB / 1.095 GB, free: 60.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.66/27.88, allocations: 12.09 kB / 1.095 GB, free: 60.25 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1)