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.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,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",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.001033/0.001033, allocations: 172.2 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.267/1.267, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007758/0.0007756, allocations: 90.64 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.067e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08722, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3206/0.4079, allocations: 122.2 MB / 492.3 MB, free: 3.844 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4082, allocations: 88.95 kB / 492.4 MB, free: 3.797 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4425/0.8508, allocations: 117.5 MB / 0.5956 GB, free: 86.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.8508, allocations: 0 / 0.5956 GB, free: 86.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003356/0.8511, allocations: 132.6 kB / 0.5957 GB, free: 86.14 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01057/0.8617, allocations: 4.916 MB / 0.6005 GB, free: 83.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.8618, allocations: 11.19 kB / 0.6005 GB, free: 83.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00105/0.8628, allocations: 0.6955 MB / 0.6012 GB, free: 82.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003995/0.8668, allocations: 0.9963 MB / 0.6022 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008616/0.8755, allocations: 4.602 MB / 0.6067 GB, free: 77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.8757, allocations: 384 kB / 0.607 GB, free: 76.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007262/0.8764, allocations: 0.5108 MB / 0.6075 GB, free: 76.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009067/0.8855, allocations: 6.729 MB / 0.6141 GB, free: 69.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.843e-05/0.8856, allocations: 7.906 kB / 0.6141 GB, free: 69.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000435/0.886, allocations: 225 kB / 0.6143 GB, free: 68.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.8862, allocations: 230.2 kB / 0.6146 GB, free: 68.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007042/0.8932, allocations: 5.429 MB / 0.6199 GB, free: 63.31 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.9177, allocations: 21.44 MB / 0.6408 GB, free: 41.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005934/0.9236, allocations: 8.677 MB / 0.6493 GB, free: 31.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002527/0.9262, allocations: 2.206 MB / 0.6514 GB, free: 29.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008078/0.9343, allocations: 6.169 MB / 0.6574 GB, free: 23.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.9343, allocations: 60.5 kB / 0.6575 GB, free: 23.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 3.316e-06/0.9343, allocations: 0 / 0.6575 GB, free: 23.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=239): time 0.01427/0.9486, allocations: 8.976 MB / 0.6663 GB, free: 14.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.9487, allocations: 81.36 kB / 0.6663 GB, free: 14.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.9518, allocations: 2.582 MB / 0.6689 GB, free: 11.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.952, allocations: 73.69 kB / 0.6689 GB, free: 11.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009704/0.9529, allocations: 2.294 MB / 0.6712 GB, free: 9.332 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004251/0.9534, allocations: 0.8203 MB / 0.672 GB, free: 8.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.9535, allocations: 56 kB / 0.672 GB, free: 8.465 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.9536, allocations: 419.9 kB / 0.6724 GB, free: 8.051 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.9552, allocations: 1.298 MB / 0.6737 GB, free: 6.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.9569, allocations: 2.046 MB / 0.6757 GB, free: 4.379 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.9588, allocations: 1.642 MB / 0.6773 GB, free: 2.711 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.9588, allocations: 8 kB / 0.6773 GB, free: 2.703 MB / 410.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.006356/0.9652, allocations: 4.525 MB / 0.6817 GB, free: 14.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.9652, allocations: 16 kB / 0.6817 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/0.9652, allocations: 24 kB / 0.6818 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001686/0.9669, allocations: 0.7623 MB / 0.6825 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002298/0.9692, allocations: 0.6396 MB / 0.6831 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2256/1.195, allocations: 13.34 MB / 0.6962 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.198, allocations: 159.6 kB / 0.6963 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002538/1.198, allocations: 118.9 kB / 0.6964 GB, free: 89.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 312 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004656/1.198, allocations: 283.2 kB / 0.6967 GB, free: 89.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/1.199, allocations: 325.6 kB / 0.697 GB, free: 89.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006857/1.206, allocations: 4.112 MB / 0.701 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/1.206, allocations: 21.91 kB / 0.7011 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/1.206, allocations: 9.969 kB / 0.7011 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.714e-05/1.206, allocations: 12.88 kB / 0.7011 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/1.22, allocations: 9.03 MB / 0.7099 GB, free: 88.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/1.22, allocations: 4.406 kB / 0.7099 GB, free: 88.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/1.221, allocations: 388.2 kB / 0.7103 GB, free: 88.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002233/1.224, allocations: 0.9206 MB / 0.7112 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/1.224, allocations: 73.28 kB / 0.7112 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/1.236, allocations: 16.47 MB / 0.7273 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.236, allocations: 8.906 kB / 0.7273 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007695/1.244, allocations: 6.269 MB / 0.7335 GB, free: 76.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/1.245, allocations: 0.7037 MB / 0.7341 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004075/1.246, allocations: 62.28 kB / 0.7342 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/1.247, allocations: 139.2 kB / 0.7343 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000454/1.248, allocations: 197.1 kB / 0.7345 GB, free: 76.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.248, allocations: 70.64 kB / 0.7346 GB, free: 76.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002813/1.251, allocations: 1.964 MB / 0.7365 GB, free: 76.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.251, allocations: 7.844 kB / 0.7365 GB, free: 76.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003161/1.254, allocations: 1.019 MB / 0.7375 GB, free: 76.26 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 171 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(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.00777/1.262, allocations: 8.136 MB / 0.7455 GB, free: 71.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005136/1.267, allocations: 4.453 MB / 0.7498 GB, free: 69.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.267, allocations: 2.531 kB / 0.7498 GB, free: 69.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003421/1.27, allocations: 2.995 MB / 0.7527 GB, free: 67.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003538/1.274, allocations: 0.8345 MB / 0.7535 GB, free: 67.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/1.289, allocations: 9.66 MB / 0.763 GB, free: 63.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/1.292, allocations: 3.527 MB / 0.7664 GB, free: 62.26 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0026/1.295, allocations: 0.7619 MB / 0.7672 GB, free: 62.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/1.297, allocations: 1.942 MB / 0.7691 GB, free: 60.56 MB / 426.7 MB Notification: Performance of SimCode: time 3.797e-06/1.297, allocations: 0 / 0.7691 GB, free: 60.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/1.406, allocations: 87.56 MB / 0.8546 GB, free: 2.477 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/1.407, allocations: 183.7 kB / 0.8547 GB, free: 2.258 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.865/5.271, allocations: 4 kB / 0.8547 GB, free: 2.254 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_res.mat does not exist to compare? outputFormat=mat