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_Transformer.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_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",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.002373/0.002373, allocations: 181.4 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.124/2.124, 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.001111/0.00111, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.421e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09829, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5661, allocations: 118.1 MB / 487.3 MB, free: 7.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/0.5664, allocations: 86.27 kB / 487.3 MB, free: 7.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7944/1.361, allocations: 133 MB / 0.6058 GB, free: 76.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.361, allocations: 0 / 0.6058 GB, free: 76.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000578/1.361, allocations: 131.3 kB / 0.6059 GB, free: 76.78 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02056/1.382, allocations: 4.765 MB / 0.6106 GB, free: 71.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/1.382, allocations: 12.02 kB / 0.6106 GB, free: 71.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003188/1.385, allocations: 0.6667 MB / 0.6112 GB, free: 71.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007878/1.393, allocations: 0.9754 MB / 0.6122 GB, free: 70.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.411, allocations: 4.491 MB / 0.6166 GB, free: 65.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005178/1.411, allocations: 365 kB / 0.6169 GB, free: 65.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002253/1.414, allocations: 489.9 kB / 0.6174 GB, free: 65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02138/1.435, allocations: 6.605 MB / 0.6238 GB, free: 58.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001941/1.435, allocations: 15.83 kB / 0.6239 GB, free: 58.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001265/1.437, allocations: 206.9 kB / 0.6241 GB, free: 58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002853/1.437, allocations: 233.8 kB / 0.6243 GB, free: 57.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/1.454, allocations: 5.404 MB / 0.6296 GB, free: 52.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05377/1.508, allocations: 21 MB / 0.6501 GB, free: 31.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01332/1.521, allocations: 9.828 MB / 0.6597 GB, free: 20.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005972/1.527, allocations: 2.405 MB / 0.662 GB, free: 17.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0182/1.546, allocations: 6.502 MB / 0.6684 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.24e-05/1.546, allocations: 64.45 kB / 0.6684 GB, free: 11.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.33e-06/1.546, allocations: 0 / 0.6684 GB, free: 11.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.0205/1.566, allocations: 7.248 MB / 0.6755 GB, free: 3.867 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/1.566, allocations: 77.41 kB / 0.6756 GB, free: 3.781 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006209/1.573, allocations: 2.608 MB / 0.6781 GB, free: 1.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005517/1.573, allocations: 69.7 kB / 0.6782 GB, free: 1.086 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001887/1.575, allocations: 2.013 MB / 0.6802 GB, free: 15.06 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/1.577, allocations: 0.7524 MB / 0.6809 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/1.577, allocations: 48 kB / 0.6809 GB, free: 14.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002988/1.577, allocations: 407.9 kB / 0.6813 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003576/1.581, allocations: 1.211 MB / 0.6825 GB, free: 12.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004374/1.585, allocations: 1.784 MB / 0.6842 GB, free: 10.62 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004217/1.589, allocations: 1.509 MB / 0.6857 GB, free: 9.117 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-05/1.589, allocations: 4 kB / 0.6857 GB, free: 9.113 MB / 426.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.01134/1.601, allocations: 3.829 MB / 0.6895 GB, free: 5.238 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.491e-05/1.601, allocations: 12.31 kB / 0.6895 GB, free: 5.227 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.184e-05/1.601, allocations: 24 kB / 0.6895 GB, free: 5.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/1.604, allocations: 0.6475 MB / 0.6901 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004846/1.609, allocations: 0.55 MB / 0.6907 GB, free: 3.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3345/1.943, allocations: 9.99 MB / 0.7004 GB, free: 81.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003908/1.947, allocations: 107.8 kB / 0.7005 GB, free: 81.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006819/1.948, allocations: 103.7 kB / 0.7006 GB, free: 81.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000708/1.949, allocations: 253.7 kB / 0.7009 GB, free: 81.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/1.95, allocations: 313.4 kB / 0.7012 GB, free: 81.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/1.962, allocations: 3.786 MB / 0.7049 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-05/1.962, allocations: 21.75 kB / 0.7049 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.816e-05/1.962, allocations: 11.19 kB / 0.7049 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.719e-05/1.962, allocations: 13.66 kB / 0.7049 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02594/1.988, allocations: 8.39 MB / 0.7131 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.342e-05/1.988, allocations: 1.844 kB / 0.7131 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.992, allocations: 344.7 kB / 0.7134 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003851/1.996, allocations: 0.8145 MB / 0.7142 GB, free: 80.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005271/1.996, allocations: 64.16 kB / 0.7143 GB, free: 80.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02053/2.017, allocations: 14.37 MB / 0.7283 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/2.017, allocations: 3.906 kB / 0.7283 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01392/2.031, allocations: 5.664 MB / 0.7339 GB, free: 71.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002748/2.034, allocations: 0.6937 MB / 0.7345 GB, free: 71.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/2.035, allocations: 53.3 kB / 0.7346 GB, free: 71.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/2.038, allocations: 122.6 kB / 0.7347 GB, free: 71.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008841/2.039, allocations: 188.8 kB / 0.7349 GB, free: 71.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000325/2.04, allocations: 62.34 kB / 0.7349 GB, free: 71.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005133/2.045, allocations: 2.005 MB / 0.7369 GB, free: 71.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.045, allocations: 0 / 0.7369 GB, free: 71.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005838/2.051, allocations: 0.98 MB / 0.7379 GB, free: 71.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01515/2.066, allocations: 7.095 MB / 0.7448 GB, free: 67.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009248/2.075, allocations: 3.722 MB / 0.7484 GB, free: 65.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/2.075, allocations: 2.75 kB / 0.7484 GB, free: 65.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006433/2.082, allocations: 2.561 MB / 0.7509 GB, free: 64.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007122/2.089, allocations: 0.85 MB / 0.7518 GB, free: 64.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02826/2.117, allocations: 8.994 MB / 0.7605 GB, free: 60.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006322/2.123, allocations: 3.421 MB / 0.7639 GB, free: 59.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004459/2.128, allocations: 1.827 MB / 0.7657 GB, free: 57.77 MB / 426.7 MB Notification: Performance of SimCode: time 2.766e-06/2.128, allocations: 3.594 kB / 0.7657 GB, free: 57.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.948/7.076, allocations: 219.7 MB / 0.9802 GB, free: 24.55 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer_res.mat does not exist to compare? outputFormat=mat