Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",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.001521/0.001525, allocations: 181.3 kB / 8.366 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.134/2.134, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001151/0.001151, allocations: 93.88 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.204e-05/2.214e-05, allocations: 3.984 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3741, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/0.5795, allocations: 128.2 MB / 490.6 MB, free: 5.965 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5799, allocations: 87.95 kB / 490.7 MB, free: 5.879 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8204/1.4, allocations: 148.3 MB / 0.624 GB, free: 18.7 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.244e-06/1.4, allocations: 0 / 0.624 GB, free: 18.7 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0007852/1.401, allocations: 175.8 kB / 0.6242 GB, free: 18.53 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02766/1.429, allocations: 6.571 MB / 0.6306 GB, free: 11.88 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/1.429, allocations: 8.031 kB / 0.6306 GB, free: 11.88 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009334/1.438, allocations: 1.244 MB / 0.6318 GB, free: 10.62 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0234/1.462, allocations: 6.222 MB / 0.6379 GB, free: 4.328 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004857/1.462, allocations: 220 kB / 0.6381 GB, free: 4.113 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002814/1.465, allocations: 415.8 kB / 0.6385 GB, free: 3.707 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02333/1.488, allocations: 7.021 MB / 0.6454 GB, free: 12.68 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03157/1.52, allocations: 8.19 MB / 0.6534 GB, free: 4.199 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004324/1.521, allocations: 15.83 kB / 0.6534 GB, free: 4.184 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002275/1.523, allocations: 8 kB / 0.6534 GB, free: 4.176 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004421/1.523, allocations: 289.4 kB / 0.6537 GB, free: 3.891 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3846/1.908, allocations: 28.14 MB / 0.6811 GB, free: 45.11 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01578/1.924, allocations: 11.58 MB / 0.6925 GB, free: 37.65 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008614/1.932, allocations: 3.149 MB / 0.6955 GB, free: 37.6 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02259/1.955, allocations: 6.602 MB / 0.702 GB, free: 36.79 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/1.955, allocations: 73.81 kB / 0.702 GB, free: 36.75 MB / 411.1 MB Notification: Performance of pre-optimization done (n=306): time 7.093e-06/1.955, allocations: 0 / 0.702 GB, free: 36.75 MB / 411.1 MB Notification: Performance of matching and sorting (n=325): time 0.03553/1.991, allocations: 11.04 MB / 0.7128 GB, free: 34.7 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/1.991, allocations: 89.84 kB / 0.7129 GB, free: 34.64 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007226/1.998, allocations: 2.786 MB / 0.7156 GB, free: 34.4 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007648/1.999, allocations: 29.3 kB / 0.7157 GB, free: 34.37 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002564/2.001, allocations: 2.873 MB / 0.7185 GB, free: 33.26 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001605/2.003, allocations: 1.047 MB / 0.7195 GB, free: 32.57 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/2.004, allocations: 7.219 kB / 0.7195 GB, free: 32.57 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002625/2.004, allocations: 464.2 kB / 0.7199 GB, free: 32.25 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003962/2.008, allocations: 1.72 MB / 0.7216 GB, free: 31.66 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005039/2.013, allocations: 2.598 MB / 0.7242 GB, free: 29.92 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005938/2.019, allocations: 2.268 MB / 0.7264 GB, free: 29.07 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.518e-05/2.019, allocations: 7.125 kB / 0.7264 GB, free: 29.07 MB / 411.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01588/2.035, allocations: 5.666 MB / 0.7319 GB, free: 26.95 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/2.035, allocations: 26.61 kB / 0.7319 GB, free: 26.94 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.145e-05/2.035, allocations: 25.72 kB / 0.732 GB, free: 26.94 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004422/2.039, allocations: 1.216 MB / 0.7331 GB, free: 26.52 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006235/2.046, allocations: 0.8117 MB / 0.7339 GB, free: 26.49 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02288/2.069, allocations: 19.85 MB / 0.7533 GB, free: 10.15 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005153/2.074, allocations: 130.9 kB / 0.7535 GB, free: 10.14 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009616/2.075, allocations: 149 kB / 0.7536 GB, free: 10.11 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009664/2.076, allocations: 209.7 kB / 0.7538 GB, free: 9.98 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01484/2.091, allocations: 5.446 MB / 0.7591 GB, free: 7.625 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001843/2.093, allocations: 403.4 kB / 0.7595 GB, free: 7.418 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/2.109, allocations: 5.756 MB / 0.7651 GB, free: 4.949 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.153e-05/2.109, allocations: 32.5 kB / 0.7652 GB, free: 4.949 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.878e-05/2.109, allocations: 14.66 kB / 0.7652 GB, free: 4.949 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-05/2.109, allocations: 14.91 kB / 0.7652 GB, free: 4.949 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03313/2.142, allocations: 11.21 MB / 0.7761 GB, free: 248 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-05/2.142, allocations: 3.281 kB / 0.7761 GB, free: 248 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004179/2.146, allocations: 462.8 kB / 0.7766 GB, free: 64 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006792/2.153, allocations: 1.552 MB / 0.7781 GB, free: 14.82 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007877/2.154, allocations: 32.16 kB / 0.7781 GB, free: 14.79 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04067/2.195, allocations: 28.97 MB / 0.8064 GB, free: 2.016 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.34e-05/2.195, allocations: 11.89 kB / 0.8064 GB, free: 2.004 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02404/2.219, allocations: 8.643 MB / 0.8149 GB, free: 10.14 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00404/2.223, allocations: 0.8661 MB / 0.8157 GB, free: 9.344 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/2.225, allocations: 23.8 kB / 0.8157 GB, free: 9.324 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004942/2.23, allocations: 147 kB / 0.8159 GB, free: 9.223 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001477/2.231, allocations: 284.9 kB / 0.8161 GB, free: 9.047 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007034/2.232, allocations: 91.08 kB / 0.8162 GB, free: 8.965 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.006501/2.239, allocations: 2.078 MB / 0.8183 GB, free: 7.141 MB / 459.1 MB Notification: Performance of sort global known variables: time 7.02e-07/2.239, allocations: 0 / 0.8183 GB, free: 7.141 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.009153/2.248, allocations: 1.204 MB / 0.8194 GB, free: 5.945 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4445/2.692, allocations: 10.25 MB / 0.8294 GB, free: 84.91 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.01698/2.709, allocations: 5.895 MB / 0.8352 GB, free: 83.39 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.584e-05/2.709, allocations: 7.438 kB / 0.8352 GB, free: 83.39 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01234/2.722, allocations: 4.507 MB / 0.8396 GB, free: 81.6 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/2.732, allocations: 0.9581 MB / 0.8405 GB, free: 81.58 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05138/2.784, allocations: 12.41 MB / 0.8527 GB, free: 79.11 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01311/2.797, allocations: 4.519 MB / 0.8571 GB, free: 78.19 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009159/2.806, allocations: 2.678 MB / 0.8597 GB, free: 78.18 MB / 459.1 MB Notification: Performance of SimCode: time 1.813e-06/2.806, allocations: 0 / 0.8597 GB, free: 78.18 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.668/10.47, allocations: 0.6156 GB / 1.475 GB, free: 29.14 MB / 491.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat