Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.001505/0.001505, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.146/2.146, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001264/0.001263, allocations: 98.62 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.87e-05/4.889e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4658/0.6003, allocations: 111.8 MB / 481 MB, free: 13.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003254/0.6007, allocations: 85.02 kB / 481.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9788/1.58, allocations: 182.7 MB / 0.6483 GB, free: 33.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/1.58, allocations: 0 / 0.6483 GB, free: 33.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000884/1.58, allocations: 191.8 kB / 0.6485 GB, free: 32.99 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03417/1.615, allocations: 7.618 MB / 0.6559 GB, free: 25.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/1.615, allocations: 8.031 kB / 0.6559 GB, free: 25.28 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005178/1.62, allocations: 1.099 MB / 0.657 GB, free: 24.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01552/1.636, allocations: 1.824 MB / 0.6588 GB, free: 22.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02604/1.662, allocations: 6.947 MB / 0.6655 GB, free: 15.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000858/1.663, allocations: 0.5979 MB / 0.6661 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003773/1.666, allocations: 0.7888 MB / 0.6669 GB, free: 13.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03816/1.705, allocations: 10.77 MB / 0.6774 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005499/1.705, allocations: 8 kB / 0.6774 GB, free: 2.895 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003188/1.708, allocations: 336 kB / 0.6777 GB, free: 2.566 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004282/1.709, allocations: 372.3 kB / 0.6781 GB, free: 2.199 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/1.742, allocations: 8.995 MB / 0.6869 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4314/2.174, allocations: 34.54 MB / 0.7206 GB, free: 45.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03051/2.204, allocations: 19.7 MB / 0.7399 GB, free: 30.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00973/2.214, allocations: 3.608 MB / 0.7434 GB, free: 30.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03016/2.244, allocations: 9.394 MB / 0.7525 GB, free: 29.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.294e-05/2.244, allocations: 77.44 kB / 0.7526 GB, free: 29.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=315): time 7.064e-06/2.244, allocations: 0 / 0.7526 GB, free: 29.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=321): time 0.02933/2.274, allocations: 10.03 MB / 0.7624 GB, free: 27.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/2.274, allocations: 90.95 kB / 0.7625 GB, free: 27.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/2.284, allocations: 3.833 MB / 0.7662 GB, free: 27.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008161/2.285, allocations: 82.42 kB / 0.7663 GB, free: 27.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002901/2.288, allocations: 3.286 MB / 0.7695 GB, free: 26.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001918/2.29, allocations: 1.075 MB / 0.7706 GB, free: 25.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004488/2.29, allocations: 76.19 kB / 0.7707 GB, free: 25.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002878/2.291, allocations: 467.5 kB / 0.7711 GB, free: 25.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004551/2.295, allocations: 1.68 MB / 0.7727 GB, free: 24.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005704/2.301, allocations: 2.717 MB / 0.7754 GB, free: 22.97 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005782/2.307, allocations: 2.173 MB / 0.7775 GB, free: 22.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.473e-05/2.307, allocations: 7.406 kB / 0.7775 GB, free: 22.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.0156/2.322, allocations: 5.454 MB / 0.7829 GB, free: 20.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-05/2.323, allocations: 18.12 kB / 0.7829 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-05/2.323, allocations: 32.05 kB / 0.7829 GB, free: 20.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003477/2.326, allocations: 0.8008 MB / 0.7837 GB, free: 19.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006708/2.333, allocations: 0.8098 MB / 0.7845 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/2.353, allocations: 14.79 MB / 0.7989 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005849/2.359, allocations: 191.4 kB / 0.7991 GB, free: 7.793 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/2.36, allocations: 156.8 kB / 0.7992 GB, free: 7.766 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (427): * Single equations (assignments): 418 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001166/2.362, allocations: 343.4 kB / 0.7996 GB, free: 7.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001494/2.363, allocations: 454 kB / 0.8 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/2.38, allocations: 5.396 MB / 0.8053 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.122e-05/2.38, allocations: 34.14 kB / 0.8053 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.118e-05/2.38, allocations: 19.34 kB / 0.8053 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.879e-05/2.38, allocations: 18.61 kB / 0.8053 GB, free: 4.984 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03685/2.417, allocations: 12.32 MB / 0.8174 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.771e-05/2.417, allocations: 7.469 kB / 0.8174 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003517/2.421, allocations: 369.1 kB / 0.8177 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006343/2.427, allocations: 1.367 MB / 0.8191 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008448/2.428, allocations: 98.56 kB / 0.8192 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04411/2.472, allocations: 23.92 MB / 0.8425 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/2.472, allocations: 7.312 kB / 0.8425 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02369/2.496, allocations: 8.164 MB / 0.8505 GB, free: 3.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004234/2.5, allocations: 0.9463 MB / 0.8514 GB, free: 2.699 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001971/2.502, allocations: 83.22 kB / 0.8515 GB, free: 2.621 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005256/2.507, allocations: 186.7 kB / 0.8517 GB, free: 2.473 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001679/2.509, allocations: 326 kB / 0.852 GB, free: 2.273 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005337/2.51, allocations: 93.8 kB / 0.8521 GB, free: 2.191 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01027/2.52, allocations: 2.982 MB / 0.855 GB, free: 15.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.52, allocations: 4 kB / 0.855 GB, free: 15.69 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009847/2.53, allocations: 1.474 MB / 0.8564 GB, free: 14.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02646/2.556, allocations: 10.02 MB / 0.8662 GB, free: 4.898 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01674/2.573, allocations: 5.448 MB / 0.8715 GB, free: 0 / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-05/2.573, allocations: 3.516 kB / 0.8716 GB, free: 0 / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3267/2.9, allocations: 4.038 MB / 0.8755 GB, free: 99.87 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009661/2.91, allocations: 1.16 MB / 0.8766 GB, free: 99.85 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0489/2.959, allocations: 13.94 MB / 0.8902 GB, free: 97.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/2.97, allocations: 5.119 MB / 0.8952 GB, free: 96.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00887/2.979, allocations: 3.039 MB / 0.8982 GB, free: 96.37 MB / 474.7 MB Notification: Performance of SimCode: time 1.794e-06/2.979, allocations: 4 kB / 0.8982 GB, free: 96.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.099/10.08, allocations: 490.4 MB / 1.377 GB, free: 83.24 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat