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.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_cpp_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_cpp_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.002349/0.002349, allocations: 181.5 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.258/2.258, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 80.25 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.363e-05/2.359e-05, allocations: 3.938 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3357, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.5405, allocations: 121.5 MB / 483.9 MB, free: 12.64 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/0.5409, allocations: 82.64 kB / 484 MB, free: 12.56 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7214/1.262, allocations: 116.1 MB / 0.586 GB, free: 56.54 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.262, allocations: 0 / 0.586 GB, free: 56.54 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0005705/1.263, allocations: 127.9 kB / 0.5861 GB, free: 56.41 MB / 395.1 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.02103/1.284, allocations: 4.917 MB / 0.5909 GB, free: 51.43 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/1.284, allocations: 12.03 kB / 0.5909 GB, free: 51.42 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007876/1.292, allocations: 0.9924 MB / 0.5919 GB, free: 50.42 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01708/1.309, allocations: 4.6 MB / 0.5964 GB, free: 45.83 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003562/1.31, allocations: 172 kB / 0.5966 GB, free: 45.66 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002135/1.312, allocations: 307.8 kB / 0.5969 GB, free: 45.36 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01627/1.328, allocations: 5.136 MB / 0.6019 GB, free: 40.22 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02112/1.349, allocations: 5.984 MB / 0.6077 GB, free: 34.04 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003332/1.35, allocations: 11.89 kB / 0.6077 GB, free: 34.02 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001697/1.351, allocations: 4 kB / 0.6077 GB, free: 34.02 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002914/1.352, allocations: 226.2 kB / 0.608 GB, free: 33.8 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05548/1.407, allocations: 20.44 MB / 0.6279 GB, free: 13.07 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/1.419, allocations: 8.57 MB / 0.6363 GB, free: 3.566 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005462/1.425, allocations: 2.109 MB / 0.6383 GB, free: 1.457 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02169/1.446, allocations: 5.992 MB / 0.6442 GB, free: 11.43 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.191e-05/1.446, allocations: 56.56 kB / 0.6443 GB, free: 11.36 MB / 411.1 MB Notification: Performance of pre-optimization done (n=220): time 6.222e-06/1.447, allocations: 3.938 kB / 0.6443 GB, free: 11.36 MB / 411.1 MB Notification: Performance of matching and sorting (n=239): time 0.03003/1.477, allocations: 8.2 MB / 0.6523 GB, free: 3.066 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/1.477, allocations: 81.41 kB / 0.6523 GB, free: 2.977 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006721/1.483, allocations: 2.117 MB / 0.6544 GB, free: 0.8516 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005907/1.484, allocations: 29.7 kB / 0.6544 GB, free: 0.8164 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3113/1.795, allocations: 2.188 MB / 0.6566 GB, free: 74.13 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001246/1.797, allocations: 0.7854 MB / 0.6573 GB, free: 73.72 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/1.797, allocations: 0 / 0.6573 GB, free: 73.72 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002274/1.797, allocations: 425.1 kB / 0.6577 GB, free: 73.41 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003248/1.801, allocations: 1.237 MB / 0.659 GB, free: 73.4 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004189/1.805, allocations: 1.972 MB / 0.6609 GB, free: 72.55 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005199/1.81, allocations: 1.726 MB / 0.6626 GB, free: 72.51 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.655e-05/1.81, allocations: 6.219 kB / 0.6626 GB, free: 72.51 MB / 411.1 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.01261/1.823, allocations: 4.158 MB / 0.6666 GB, free: 72.15 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.014e-05/1.823, allocations: 14.53 kB / 0.6666 GB, free: 72.15 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.853e-05/1.823, allocations: 29.28 kB / 0.6667 GB, free: 72.15 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002969/1.826, allocations: 0.7409 MB / 0.6674 GB, free: 72.07 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004943/1.831, allocations: 0.6434 MB / 0.668 GB, free: 72.07 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0151/1.846, allocations: 12.79 MB / 0.6805 GB, free: 63.46 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003991/1.85, allocations: 101.1 kB / 0.6806 GB, free: 63.46 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006585/1.851, allocations: 123.4 kB / 0.6807 GB, free: 63.46 MB / 411.1 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.0006931/1.852, allocations: 180.6 kB / 0.6809 GB, free: 63.35 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01098/1.863, allocations: 3.766 MB / 0.6846 GB, free: 62.83 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/1.864, allocations: 293.4 kB / 0.6849 GB, free: 62.68 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/1.877, allocations: 4.016 MB / 0.6888 GB, free: 62.26 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.277e-05/1.877, allocations: 23.62 kB / 0.6888 GB, free: 62.26 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.94e-05/1.877, allocations: 9 kB / 0.6888 GB, free: 62.26 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-05/1.877, allocations: 12.39 kB / 0.6888 GB, free: 62.26 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02516/1.902, allocations: 8.288 MB / 0.6969 GB, free: 61.46 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/1.902, allocations: 4.719 kB / 0.6969 GB, free: 61.46 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/1.906, allocations: 386.2 kB / 0.6973 GB, free: 61.46 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004271/1.91, allocations: 0.9037 MB / 0.6982 GB, free: 61.39 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005685/1.911, allocations: 35.59 kB / 0.6982 GB, free: 61.39 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02035/1.931, allocations: 15.84 MB / 0.7137 GB, free: 51.25 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/1.931, allocations: 11.06 kB / 0.7137 GB, free: 51.25 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01584/1.947, allocations: 6.16 MB / 0.7197 GB, free: 48.23 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00291/1.95, allocations: 0.6611 MB / 0.7203 GB, free: 47.81 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/1.951, allocations: 20.03 kB / 0.7204 GB, free: 47.81 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003671/1.955, allocations: 101.7 kB / 0.7205 GB, free: 47.81 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/1.956, allocations: 201.2 kB / 0.7207 GB, free: 47.78 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003504/1.957, allocations: 71.98 kB / 0.7207 GB, free: 47.77 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004106/1.961, allocations: 1.577 MB / 0.7223 GB, free: 47.11 MB / 411.1 MB Notification: Performance of sort global known variables: time 7.91e-07/1.961, allocations: 0 / 0.7223 GB, free: 47.11 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006137/1.967, allocations: 0.8966 MB / 0.7231 GB, free: 47.09 MB / 411.1 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.01672/1.984, allocations: 7.969 MB / 0.7309 GB, free: 42.61 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.009745/1.993, allocations: 4.244 MB / 0.7351 GB, free: 40.43 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.994, allocations: 3.344 kB / 0.7351 GB, free: 40.43 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007327/2.001, allocations: 2.873 MB / 0.7379 GB, free: 38.78 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006277/2.007, allocations: 0.6371 MB / 0.7385 GB, free: 38.63 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03039/2.038, allocations: 9.28 MB / 0.7476 GB, free: 33.62 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005921/2.044, allocations: 3.44 MB / 0.7509 GB, free: 31.01 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004867/2.049, allocations: 1.96 MB / 0.7528 GB, free: 29.2 MB / 411.1 MB Notification: Performance of SimCode: time 1.623e-06/2.049, allocations: 2.156 kB / 0.7528 GB, free: 29.2 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.541/7.59, allocations: 316.9 MB / 1.062 GB, free: 90.17 MB / 459.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat