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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.002268/0.002273, allocations: 177.8 kB / 8.36 MB, free: 0.7148 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.22/2.22, 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.001123/0.001122, allocations: 87.73 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.513e-05/2.511e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3417, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.5472, allocations: 107.9 MB / 470.3 MB, free: 10.26 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004741/0.5477, allocations: 79.95 kB / 470.4 MB, free: 10.18 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5745/1.122, allocations: 79.29 MB / 0.5368 GB, free: 93.61 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.096e-06/1.122, allocations: 0 / 0.5368 GB, free: 93.61 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003493/1.123, allocations: 80.23 kB / 0.5369 GB, free: 93.6 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01342/1.136, allocations: 3.208 MB / 0.54 GB, free: 92 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/1.136, allocations: 10.41 kB / 0.54 GB, free: 92 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006132/1.142, allocations: 0.729 MB / 0.5407 GB, free: 91.75 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/1.154, allocations: 3.341 MB / 0.544 GB, free: 90.1 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002216/1.155, allocations: 106.3 kB / 0.5441 GB, free: 90.09 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/1.156, allocations: 190.8 kB / 0.5443 GB, free: 90.08 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009816/1.166, allocations: 3.159 MB / 0.5474 GB, free: 88.68 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01253/1.178, allocations: 3.655 MB / 0.5509 GB, free: 87.02 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/1.179, allocations: 4 kB / 0.5509 GB, free: 87.01 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008816/1.179, allocations: 3.938 kB / 0.5509 GB, free: 87.01 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/1.18, allocations: 136.5 kB / 0.5511 GB, free: 87 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/1.213, allocations: 12.94 MB / 0.5637 GB, free: 76.96 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008646/1.222, allocations: 6.731 MB / 0.5703 GB, free: 69.38 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003305/1.225, allocations: 1.314 MB / 0.5716 GB, free: 68.07 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009508/1.235, allocations: 3.515 MB / 0.575 GB, free: 64.51 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/1.235, allocations: 47.88 kB / 0.575 GB, free: 64.45 MB / 395.1 MB Notification: Performance of pre-optimization done (n=122): time 4.939e-06/1.235, allocations: 4 kB / 0.5751 GB, free: 64.45 MB / 395.1 MB Notification: Performance of matching and sorting (n=142): time 0.01685/1.252, allocations: 5.192 MB / 0.5801 GB, free: 59.16 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/1.252, allocations: 64.72 kB / 0.5802 GB, free: 59.08 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/1.255, allocations: 1.346 MB / 0.5815 GB, free: 57.73 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/1.255, allocations: 29.69 kB / 0.5815 GB, free: 57.69 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009977/1.256, allocations: 1.372 MB / 0.5829 GB, free: 56.3 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006238/1.257, allocations: 476.9 kB / 0.5833 GB, free: 55.83 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/1.257, allocations: 4 kB / 0.5833 GB, free: 55.83 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/1.257, allocations: 374.8 kB / 0.5837 GB, free: 55.45 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/1.259, allocations: 0.6795 MB / 0.5843 GB, free: 54.77 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/1.261, allocations: 1.122 MB / 0.5854 GB, free: 53.46 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00305/1.264, allocations: 1.025 MB / 0.5864 GB, free: 52.43 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.211e-05/1.264, allocations: 4 kB / 0.5864 GB, free: 52.43 MB / 395.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006482/1.271, allocations: 2.388 MB / 0.5888 GB, free: 50.03 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/1.271, allocations: 8 kB / 0.5888 GB, free: 50.02 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/1.271, allocations: 19.94 kB / 0.5888 GB, free: 50 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/1.273, allocations: 492.4 kB / 0.5893 GB, free: 49.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/1.276, allocations: 387.5 kB / 0.5896 GB, free: 49.14 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/1.286, allocations: 6.139 MB / 0.5956 GB, free: 42.77 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/1.289, allocations: 43.95 kB / 0.5957 GB, free: 42.73 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002522/1.289, allocations: 68 kB / 0.5957 GB, free: 42.66 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003812/1.289, allocations: 153.5 kB / 0.5959 GB, free: 42.5 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005702/1.295, allocations: 2.253 MB / 0.5981 GB, free: 40.19 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006252/1.296, allocations: 173.8 kB / 0.5983 GB, free: 40.02 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006223/1.302, allocations: 2.401 MB / 0.6006 GB, free: 37.55 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/1.302, allocations: 12 kB / 0.6006 GB, free: 37.54 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.302, allocations: 8 kB / 0.6006 GB, free: 37.54 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/1.302, allocations: 7.969 kB / 0.6006 GB, free: 37.53 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.314, allocations: 4.984 MB / 0.6055 GB, free: 32.45 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/1.314, allocations: 4 kB / 0.6055 GB, free: 32.45 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/1.316, allocations: 215.9 kB / 0.6057 GB, free: 32.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/1.318, allocations: 483.9 kB / 0.6062 GB, free: 31.75 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/1.318, allocations: 19.98 kB / 0.6062 GB, free: 31.73 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/1.331, allocations: 10.01 MB / 0.616 GB, free: 21.14 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/1.331, allocations: 12.03 kB / 0.616 GB, free: 21.13 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01282/1.343, allocations: 3.504 MB / 0.6194 GB, free: 17.5 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002257/1.346, allocations: 426.8 kB / 0.6198 GB, free: 17.07 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009148/1.347, allocations: 15.98 kB / 0.6198 GB, free: 17.05 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.35, allocations: 47.95 kB / 0.6199 GB, free: 17 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006241/1.35, allocations: 117 kB / 0.62 GB, free: 16.89 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/1.351, allocations: 39.98 kB / 0.62 GB, free: 16.85 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003484/1.354, allocations: 1.015 MB / 0.621 GB, free: 15.84 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.124e-06/1.354, allocations: 0 / 0.621 GB, free: 15.84 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005107/1.359, allocations: 0.5391 MB / 0.6215 GB, free: 15.3 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01385/1.373, allocations: 4.678 MB / 0.6261 GB, free: 10.52 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.008424/1.382, allocations: 2.167 MB / 0.6282 GB, free: 8.336 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/1.382, allocations: 1.188 kB / 0.6282 GB, free: 8.336 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005289/1.387, allocations: 1.583 MB / 0.6298 GB, free: 6.703 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004893/1.392, allocations: 357.2 kB / 0.6301 GB, free: 6.352 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0245/1.417, allocations: 5.441 MB / 0.6354 GB, free: 0.8398 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005767/1.422, allocations: 2.374 MB / 0.6377 GB, free: 14.44 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004474/1.427, allocations: 1.128 MB / 0.6388 GB, free: 13.31 MB / 411.1 MB Notification: Performance of SimCode: time 2.314e-06/1.427, allocations: 0 / 0.6388 GB, free: 13.31 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.019/5.446, allocations: 107.5 MB / 0.7439 GB, free: 42.27 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat