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.002083/0.002083, allocations: 178.9 kB / 13.65 MB, free: 1.66 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.102/2.102, allocations: 205.2 MB / 219.4 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.001096/0.001095, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.915e-05/3.927e-05, allocations: 7.984 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.09994, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4952/0.5952, allocations: 128.8 MB / 498 MB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.5955, allocations: 91.88 kB / 498.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.862/1.458, allocations: 150.3 MB / 0.6331 GB, free: 50.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.458, allocations: 0 / 0.6331 GB, free: 50.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008375/1.459, allocations: 175.8 kB / 0.6333 GB, free: 50.15 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02841/1.487, allocations: 6.567 MB / 0.6397 GB, free: 43.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/1.487, allocations: 12.03 kB / 0.6397 GB, free: 43.49 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004628/1.492, allocations: 0.9138 MB / 0.6406 GB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009495/1.501, allocations: 1.251 MB / 0.6419 GB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02387/1.525, allocations: 6.226 MB / 0.6479 GB, free: 35.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007261/1.526, allocations: 0.5055 MB / 0.6484 GB, free: 34.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003061/1.529, allocations: 0.6639 MB / 0.6491 GB, free: 33.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03129/1.56, allocations: 9.178 MB / 0.658 GB, free: 24.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004378/1.561, allocations: 19.84 kB / 0.6581 GB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/1.564, allocations: 292 kB / 0.6583 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000357/1.564, allocations: 297.4 kB / 0.6586 GB, free: 23.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02372/1.588, allocations: 7.437 MB / 0.6659 GB, free: 16.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08379/1.672, allocations: 29.47 MB / 0.6947 GB, free: 2.156 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3425/2.014, allocations: 11.75 MB / 0.7061 GB, free: 58.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01015/2.024, allocations: 3.274 MB / 0.7093 GB, free: 58.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02359/2.048, allocations: 6.85 MB / 0.716 GB, free: 58.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.849e-05/2.048, allocations: 72.22 kB / 0.7161 GB, free: 58.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=306): time 6.543e-06/2.048, allocations: 0 / 0.7161 GB, free: 58.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=325): time 0.04231/2.091, allocations: 11.92 MB / 0.7277 GB, free: 56.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/2.091, allocations: 87.64 kB / 0.7278 GB, free: 56.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009479/2.1, allocations: 3.454 MB / 0.7312 GB, free: 55.92 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000818/2.101, allocations: 85.45 kB / 0.7313 GB, free: 55.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002713/2.104, allocations: 2.837 MB / 0.7341 GB, free: 54.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001724/2.106, allocations: 1.089 MB / 0.7351 GB, free: 54.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/2.106, allocations: 76.12 kB / 0.7352 GB, free: 54.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003108/2.106, allocations: 462.1 kB / 0.7356 GB, free: 53.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0047/2.111, allocations: 1.792 MB / 0.7374 GB, free: 53.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005653/2.117, allocations: 2.698 MB / 0.74 GB, free: 52.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005665/2.123, allocations: 2.221 MB / 0.7422 GB, free: 52.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.587e-05/2.123, allocations: 7.781 kB / 0.7422 GB, free: 52.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.0168/2.14, allocations: 5.933 MB / 0.748 GB, free: 52.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/2.14, allocations: 15.47 kB / 0.748 GB, free: 52.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/2.14, allocations: 29.59 kB / 0.748 GB, free: 52.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004765/2.144, allocations: 1.254 MB / 0.7492 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006397/2.151, allocations: 0.8193 MB / 0.7501 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02393/2.175, allocations: 20.69 MB / 0.7703 GB, free: 35.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/2.181, allocations: 205.2 kB / 0.7705 GB, free: 35.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009987/2.182, allocations: 151.5 kB / 0.7706 GB, free: 35.28 MB / 426.7 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.001176/2.183, allocations: 337.1 kB / 0.7709 GB, free: 35.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/2.185, allocations: 449.8 kB / 0.7713 GB, free: 34.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01795/2.203, allocations: 5.966 MB / 0.7772 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/2.203, allocations: 35.25 kB / 0.7772 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-05/2.203, allocations: 19.77 kB / 0.7772 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/2.203, allocations: 19.94 kB / 0.7772 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0368/2.24, allocations: 12.26 MB / 0.7892 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.375e-05/2.24, allocations: 2.875 kB / 0.7892 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004311/2.244, allocations: 469.8 kB / 0.7897 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006871/2.251, allocations: 1.597 MB / 0.7912 GB, free: 26.47 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008202/2.252, allocations: 84.09 kB / 0.7913 GB, free: 26.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03715/2.289, allocations: 30.14 MB / 0.8207 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/2.289, allocations: 5.875 kB / 0.8207 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02514/2.314, allocations: 8.884 MB / 0.8294 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004356/2.319, allocations: 0.9245 MB / 0.8303 GB, free: 10.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002097/2.321, allocations: 71.33 kB / 0.8304 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005437/2.326, allocations: 197.3 kB / 0.8306 GB, free: 9.895 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/2.328, allocations: 287.9 kB / 0.8309 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007884/2.329, allocations: 83.42 kB / 0.8309 GB, free: 9.645 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008482/2.337, allocations: 2.637 MB / 0.8335 GB, free: 7.273 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.283e-06/2.337, allocations: 3.094 kB / 0.8335 GB, free: 7.273 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009528/2.347, allocations: 1.377 MB / 0.8349 GB, free: 5.906 MB / 442.7 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.02973/2.377, allocations: 10.57 MB / 0.8452 GB, free: 12.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01694/2.394, allocations: 6.169 MB / 0.8512 GB, free: 6.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/2.394, allocations: 0.875 kB / 0.8512 GB, free: 6.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01244/2.406, allocations: 4.704 MB / 0.8558 GB, free: 1.914 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0108/2.417, allocations: 1.26 MB / 0.857 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4047/2.822, allocations: 13.23 MB / 0.87 GB, free: 90 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0104/2.832, allocations: 4.519 MB / 0.8744 GB, free: 89.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007122/2.84, allocations: 2.693 MB / 0.877 GB, free: 89.08 MB / 458.7 MB Notification: Performance of SimCode: time 1.323e-06/2.84, allocations: 0 / 0.877 GB, free: 89.08 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.893/10.73, allocations: 0.6211 GB / 1.498 GB, free: 45.05 MB / 490.7 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