Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001293, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008288/0.0008286, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003018/0.0003018, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2153, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.3294, allocations: 109.7 MB / 485.6 MB, free: 2.926 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.3297, allocations: 91.94 kB / 485.7 MB, free: 2.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3241/0.6538, allocations: 80.55 MB / 0.553 GB, free: 63.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6538, allocations: 0 / 0.553 GB, free: 63.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001948/0.654, allocations: 75.94 kB / 0.553 GB, free: 63.55 MB / 378.7 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.007773/0.6618, allocations: 3.517 MB / 0.5565 GB, free: 59.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.6619, allocations: 12.03 kB / 0.5565 GB, free: 59.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008065/0.6627, allocations: 471.7 kB / 0.5569 GB, free: 59.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003467/0.6662, allocations: 0.7334 MB / 0.5576 GB, free: 58.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007472/0.6736, allocations: 3.335 MB / 0.5609 GB, free: 55.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.6739, allocations: 238.5 kB / 0.5611 GB, free: 55.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007008/0.6746, allocations: 323.9 kB / 0.5614 GB, free: 54.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006331/0.6809, allocations: 4.204 MB / 0.5655 GB, free: 50.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.58e-05/0.681, allocations: 4 kB / 0.5655 GB, free: 50.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002784/0.6813, allocations: 136 kB / 0.5657 GB, free: 50.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.45e-05/0.6814, allocations: 150.4 kB / 0.5658 GB, free: 50.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004833/0.6862, allocations: 3.43 MB / 0.5692 GB, free: 46.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.7028, allocations: 13.9 MB / 0.5827 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004747/0.7076, allocations: 6.675 MB / 0.5893 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004537/0.7122, allocations: 3.394 MB / 0.5926 GB, free: 21.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.7122, allocations: 47.88 kB / 0.5926 GB, free: 21.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 2.525e-06/0.7122, allocations: 0 / 0.5926 GB, free: 21.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=155): time 0.01045/0.7227, allocations: 6.467 MB / 0.5989 GB, free: 14.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.7227, allocations: 68.72 kB / 0.599 GB, free: 14.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.7246, allocations: 1.532 MB / 0.6005 GB, free: 13.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.7248, allocations: 53.7 kB / 0.6005 GB, free: 13.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005844/0.7253, allocations: 1.4 MB / 0.6019 GB, free: 11.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.7256, allocations: 0.5314 MB / 0.6024 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/0.7257, allocations: 36 kB / 0.6025 GB, free: 11.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.7258, allocations: 381.9 kB / 0.6028 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009531/0.7268, allocations: 0.7223 MB / 0.6035 GB, free: 9.973 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.7279, allocations: 1.181 MB / 0.6047 GB, free: 8.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/0.729, allocations: 0.9549 MB / 0.6056 GB, free: 7.645 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.7291, allocations: 4 kB / 0.6056 GB, free: 7.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003578/0.7326, allocations: 2.688 MB / 0.6082 GB, free: 4.906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.7327, allocations: 15.95 kB / 0.6083 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.7327, allocations: 16 kB / 0.6083 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009774/0.7337, allocations: 457 kB / 0.6087 GB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.7349, allocations: 375.4 kB / 0.6091 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008078/0.743, allocations: 9.797 MB / 0.6186 GB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.7447, allocations: 75.88 kB / 0.6187 GB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.7448, allocations: 79.98 kB / 0.6188 GB, free: 9.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 183 * 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: 5 * 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: 5 {(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00193/0.7468, allocations: 1.012 MB / 0.6198 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003893/0.7472, allocations: 193.7 kB / 0.62 GB, free: 8.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004426/0.7516, allocations: 2.545 MB / 0.6224 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.7517, allocations: 16 kB / 0.6225 GB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.7517, allocations: 8 kB / 0.6225 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/0.7517, allocations: 15.95 kB / 0.6225 GB, free: 5.562 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009841/0.7616, allocations: 5.45 MB / 0.6278 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.7616, allocations: 4 kB / 0.6278 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7627, allocations: 183.8 kB / 0.628 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/0.7645, allocations: 0.6192 MB / 0.6286 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/0.7647, allocations: 39.98 kB / 0.6286 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.171/0.9357, allocations: 14.28 MB / 0.6426 GB, free: 90.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.9358, allocations: 6.047 kB / 0.6426 GB, free: 90.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004653/0.9404, allocations: 3.64 MB / 0.6461 GB, free: 89.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007838/0.9412, allocations: 449.9 kB / 0.6466 GB, free: 89.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002205/0.9414, allocations: 36.14 kB / 0.6466 GB, free: 89.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008463/0.9423, allocations: 79.78 kB / 0.6467 GB, free: 89.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.9426, allocations: 125.5 kB / 0.6468 GB, free: 89.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.098e-05/0.9426, allocations: 43.27 kB / 0.6468 GB, free: 89.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001385/0.944, allocations: 1.177 MB / 0.648 GB, free: 89.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.944, allocations: 0 / 0.648 GB, free: 89.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001898/0.9459, allocations: 0.6427 MB / 0.6486 GB, free: 89.45 MB / 410.7 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.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,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 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 86 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(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.004641/0.9506, allocations: 4.854 MB / 0.6534 GB, free: 87.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.9537, allocations: 2.649 MB / 0.6559 GB, free: 87.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.9537, allocations: 6.062 kB / 0.6559 GB, free: 87.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002149/0.9558, allocations: 2 MB / 0.6579 GB, free: 86.43 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.9577, allocations: 0.5014 MB / 0.6584 GB, free: 86.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02587/0.9835, allocations: 26.11 MB / 0.6839 GB, free: 70.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.9853, allocations: 2.38 MB / 0.6862 GB, free: 70.19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001346/0.9867, allocations: 393.1 kB / 0.6866 GB, free: 70.13 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/0.9878, allocations: 1.131 MB / 0.6877 GB, free: 70.12 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.9878, allocations: 0 / 0.6877 GB, free: 70.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06554/1.053, allocations: 54.56 MB / 0.741 GB, free: 37.61 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/1.054, allocations: 224.9 kB / 0.7412 GB, free: 37.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.228/4.282, allocations: 4 kB / 0.7412 GB, free: 37.36 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat