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.001032/0.001032, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009414/0.0009414, allocations: 94.36 kB / 262.5 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.477e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1374, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4925/0.63, allocations: 111.4 MB / 474.6 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.6303, allocations: 88.7 kB / 474.7 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6202/1.251, allocations: 180.4 MB / 0.6397 GB, free: 44.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.251, allocations: 0 / 0.6397 GB, free: 44.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006985/1.251, allocations: 190.5 kB / 0.6399 GB, free: 44.32 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.02601/1.277, allocations: 7.603 MB / 0.6474 GB, free: 36.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/1.277, allocations: 12.03 kB / 0.6474 GB, free: 36.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/1.289, allocations: 1.819 MB / 0.6491 GB, free: 34.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01806/1.307, allocations: 6.951 MB / 0.6559 GB, free: 27.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005642/1.308, allocations: 260 kB / 0.6562 GB, free: 27.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.312, allocations: 483.7 kB / 0.6566 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02157/1.333, allocations: 8.518 MB / 0.665 GB, free: 18.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0312/1.364, allocations: 9.612 MB / 0.6743 GB, free: 8.777 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003073/1.365, allocations: 11.98 kB / 0.6744 GB, free: 8.766 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001826/1.367, allocations: 4 kB / 0.6744 GB, free: 8.762 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002936/1.367, allocations: 368.2 kB / 0.6747 GB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3948/1.762, allocations: 32.98 MB / 0.7069 GB, free: 45.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/1.781, allocations: 19.48 MB / 0.7259 GB, free: 31.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006035/1.787, allocations: 3.469 MB / 0.7293 GB, free: 31.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0176/1.805, allocations: 9.118 MB / 0.7382 GB, free: 30.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.075e-05/1.805, allocations: 74.42 kB / 0.7383 GB, free: 30.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=315): time 7.094e-06/1.805, allocations: 0 / 0.7383 GB, free: 30.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=321): time 0.02101/1.826, allocations: 10.42 MB / 0.7485 GB, free: 28.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/1.826, allocations: 83.78 kB / 0.7486 GB, free: 28.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005795/1.832, allocations: 3.147 MB / 0.7516 GB, free: 27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007166/1.832, allocations: 25.7 kB / 0.7517 GB, free: 26.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00247/1.835, allocations: 3.543 MB / 0.7551 GB, free: 24.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00137/1.836, allocations: 1.037 MB / 0.7561 GB, free: 23.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/1.837, allocations: 0 / 0.7561 GB, free: 23.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/1.837, allocations: 467.4 kB / 0.7566 GB, free: 23.31 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/1.839, allocations: 1.607 MB / 0.7581 GB, free: 22.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00309/1.842, allocations: 2.618 MB / 0.7607 GB, free: 20.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/1.846, allocations: 2.405 MB / 0.7631 GB, free: 19.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-05/1.846, allocations: 7.344 kB / 0.7631 GB, free: 19.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01004/1.857, allocations: 5.62 MB / 0.7685 GB, free: 17.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/1.857, allocations: 17.22 kB / 0.7686 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-05/1.857, allocations: 35.03 kB / 0.7686 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/1.859, allocations: 0.7749 MB / 0.7694 GB, free: 17.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/1.862, allocations: 0.8011 MB / 0.7701 GB, free: 17.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/1.875, allocations: 14.27 MB / 0.7841 GB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004228/1.879, allocations: 108 kB / 0.7842 GB, free: 6.016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009962/1.88, allocations: 162.5 kB / 0.7843 GB, free: 5.984 MB / 410.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.0007928/1.881, allocations: 213.9 kB / 0.7845 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009079/1.89, allocations: 5.06 MB / 0.7895 GB, free: 3.758 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001438/1.891, allocations: 409.2 kB / 0.7899 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/1.902, allocations: 5.365 MB / 0.7951 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.354e-05/1.902, allocations: 34.09 kB / 0.7951 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.861e-05/1.902, allocations: 21.03 kB / 0.7952 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.28e-05/1.902, allocations: 13.27 kB / 0.7952 GB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/1.928, allocations: 11.28 MB / 0.8062 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/1.928, allocations: 4 kB / 0.8062 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/1.93, allocations: 372.9 kB / 0.8065 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003586/1.933, allocations: 1.334 MB / 0.8078 GB, free: 9.051 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002978/1.934, allocations: 47.25 kB / 0.8079 GB, free: 9.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02836/1.962, allocations: 23.24 MB / 0.8306 GB, free: 3.07 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/1.962, allocations: 8.219 kB / 0.8306 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01997/1.982, allocations: 8.508 MB / 0.8389 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003959/1.986, allocations: 0.8967 MB / 0.8398 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001548/1.988, allocations: 31.09 kB / 0.8398 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002464/1.99, allocations: 136.2 kB / 0.8399 GB, free: 11.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008404/1.991, allocations: 321.6 kB / 0.8402 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002207/1.991, allocations: 86.28 kB / 0.8403 GB, free: 11.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004608/1.996, allocations: 2.349 MB / 0.8426 GB, free: 9.383 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.996, allocations: 0 / 0.8426 GB, free: 9.383 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007079/2.003, allocations: 1.295 MB / 0.8439 GB, free: 8.094 MB / 458.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.3683/2.371, allocations: 10.11 MB / 0.8538 GB, free: 88.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01143/2.383, allocations: 5.106 MB / 0.8587 GB, free: 87.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/2.383, allocations: 2.469 kB / 0.8587 GB, free: 87.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007379/2.39, allocations: 3.793 MB / 0.8625 GB, free: 86.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007195/2.397, allocations: 0.839 MB / 0.8633 GB, free: 86.84 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03772/2.435, allocations: 13.7 MB / 0.8766 GB, free: 84.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007384/2.443, allocations: 5.239 MB / 0.8818 GB, free: 83.21 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004202/2.447, allocations: 0.9294 MB / 0.8827 GB, free: 83.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005247/2.452, allocations: 3.021 MB / 0.8856 GB, free: 83.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.864e-06/2.452, allocations: 0 / 0.8856 GB, free: 83.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1808/2.633, allocations: 107.1 MB / 0.9902 GB, free: 25.09 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/2.633, allocations: 177.5 kB / 0.9904 GB, free: 24.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.498/8.131, allocations: 0 / 0.9904 GB, free: 24.89 MB / 458.7 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