Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001004/0.001004, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.264/1.264, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.000763/0.0007629, allocations: 86.67 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.516e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08117/0.08121, allocations: 47.57 MB / 370.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.3914, allocations: 111.8 MB / 481.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.3917, allocations: 90.25 kB / 482 MB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5818/0.9735, allocations: 182.7 MB / 0.6492 GB, free: 22.34 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.9735, allocations: 192 / 0.6492 GB, free: 22.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003909/0.9739, allocations: 195.8 kB / 0.6494 GB, free: 22.15 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.01609/0.99, allocations: 7.622 MB / 0.6568 GB, free: 14.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.9901, allocations: 8.031 kB / 0.6568 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001854/0.992, allocations: 1.095 MB / 0.6579 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007818/0.9998, allocations: 1.828 MB / 0.6597 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/1.012, allocations: 6.947 MB / 0.6665 GB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/1.013, allocations: 0.594 MB / 0.667 GB, free: 3.871 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/1.014, allocations: 0.7927 MB / 0.6678 GB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0179/1.032, allocations: 10.77 MB / 0.6783 GB, free: 8.059 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001352/1.032, allocations: 7.938 kB / 0.6783 GB, free: 8.051 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007657/1.033, allocations: 340 kB / 0.6787 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000301/1.033, allocations: 368.3 kB / 0.679 GB, free: 7.355 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0149/1.048, allocations: 8.995 MB / 0.6878 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4723/1.521, allocations: 34.53 MB / 0.7215 GB, free: 53.62 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/1.536, allocations: 19.69 MB / 0.7408 GB, free: 39.04 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00503/1.541, allocations: 3.609 MB / 0.7443 GB, free: 38.97 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01473/1.556, allocations: 9.403 MB / 0.7535 GB, free: 37.98 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/1.556, allocations: 69.58 kB / 0.7535 GB, free: 37.94 MB / 442.8 MB Notification: Performance of pre-optimization done (n=315): time 6.222e-06/1.556, allocations: 0 / 0.7535 GB, free: 37.94 MB / 442.8 MB Notification: Performance of matching and sorting (n=321): time 0.01518/1.571, allocations: 10.03 MB / 0.7633 GB, free: 36.01 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/1.571, allocations: 84.34 kB / 0.7634 GB, free: 35.94 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006259/1.578, allocations: 3.834 MB / 0.7671 GB, free: 35.62 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/1.578, allocations: 84.52 kB / 0.7672 GB, free: 35.59 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001819/1.58, allocations: 3.538 MB / 0.7707 GB, free: 34.19 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006419/1.58, allocations: 1.072 MB / 0.7717 GB, free: 33.51 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002278/1.581, allocations: 79.84 kB / 0.7718 GB, free: 33.51 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0001607/1.581, allocations: 459.5 kB / 0.7722 GB, free: 33.2 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002216/1.583, allocations: 1.682 MB / 0.7739 GB, free: 33.19 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002592/1.586, allocations: 2.713 MB / 0.7765 GB, free: 32.02 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/1.588, allocations: 2.177 MB / 0.7787 GB, free: 31.79 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.568e-05/1.588, allocations: 10.09 kB / 0.7787 GB, free: 31.79 MB / 442.8 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.008311/1.597, allocations: 5.742 MB / 0.7843 GB, free: 29.6 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/1.597, allocations: 15.19 kB / 0.7843 GB, free: 29.6 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/1.597, allocations: 35.98 kB / 0.7843 GB, free: 29.6 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/1.599, allocations: 0.7922 MB / 0.7851 GB, free: 29.34 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002961/1.602, allocations: 0.8118 MB / 0.7859 GB, free: 29.31 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/1.613, allocations: 14.8 MB / 0.8004 GB, free: 17.38 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003229/1.616, allocations: 192 kB / 0.8005 GB, free: 17.32 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004012/1.616, allocations: 164.2 kB / 0.8007 GB, free: 17.29 MB / 442.8 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.0006645/1.617, allocations: 336.5 kB / 0.801 GB, free: 17.05 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009231/1.618, allocations: 458.3 kB / 0.8014 GB, free: 16.81 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008378/1.626, allocations: 5.387 MB / 0.8067 GB, free: 14.52 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/1.626, allocations: 37.33 kB / 0.8067 GB, free: 14.52 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-05/1.626, allocations: 18.75 kB / 0.8068 GB, free: 14.52 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.47e-05/1.627, allocations: 17.95 kB / 0.8068 GB, free: 14.52 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/1.646, allocations: 12.32 MB / 0.8188 GB, free: 9.289 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/1.646, allocations: 6.938 kB / 0.8188 GB, free: 9.289 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/1.647, allocations: 375.1 kB / 0.8192 GB, free: 9.277 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/1.65, allocations: 1.373 MB / 0.8205 GB, free: 8.852 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002038/1.651, allocations: 93.23 kB / 0.8206 GB, free: 8.801 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02159/1.672, allocations: 23.92 MB / 0.844 GB, free: 6.883 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.672, allocations: 3.75 kB / 0.844 GB, free: 6.883 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.684, allocations: 8.166 MB / 0.8519 GB, free: 2.508 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003311/1.687, allocations: 0.9541 MB / 0.8529 GB, free: 1.629 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006321/1.688, allocations: 79.47 kB / 0.853 GB, free: 1.555 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001975/1.69, allocations: 186.2 kB / 0.8531 GB, free: 1.406 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007236/1.69, allocations: 330.8 kB / 0.8534 GB, free: 1.211 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002021/1.691, allocations: 93.16 kB / 0.8535 GB, free: 1.129 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008609/1.699, allocations: 3.285 MB / 0.8567 GB, free: 15.4 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.01e-07/1.699, allocations: 0 / 0.8567 GB, free: 15.4 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.004885/1.704, allocations: 1.464 MB / 0.8582 GB, free: 13.95 MB / 474.8 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.01219/1.716, allocations: 10.03 MB / 0.868 GB, free: 4.699 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.009131/1.725, allocations: 5.478 MB / 0.8733 GB, free: 0 / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/1.726, allocations: 3.406 kB / 0.8733 GB, free: 0 / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.2305/1.956, allocations: 4.039 MB / 0.8773 GB, free: 93.44 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005011/1.961, allocations: 1.164 MB / 0.8784 GB, free: 93.42 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0222/1.983, allocations: 14.11 MB / 0.8922 GB, free: 90.75 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00492/1.988, allocations: 5.245 MB / 0.8973 GB, free: 89.84 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.003538/1.992, allocations: 0.9996 MB / 0.8983 GB, free: 89.71 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003152/1.995, allocations: 3.013 MB / 0.9012 GB, free: 89.71 MB / 474.8 MB Notification: Performance of SimCode: time 9.02e-07/1.995, allocations: 7.875 kB / 0.9012 GB, free: 89.71 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1488/2.144, allocations: 126.1 MB / 1.024 GB, free: 21.69 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/2.144, allocations: 199.5 kB / 1.025 GB, free: 21.47 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.179/7.323, allocations: 0 / 1.025 GB, free: 21.47 MB / 474.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat