Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.3 MB / 235.5 MB, free: 2.879 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000835/0.0008349, allocations: 98.86 kB / 286.5 MB, free: 136 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.986e-05/2.988e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4471/0.5509, allocations: 103.1 MB / 497.4 MB, free: 368 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003864/0.5514, allocations: 87.94 kB / 497.5 MB, free: 280 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1647/0.7161, allocations: 41.18 MB / 0.526 GB, free: 6.805 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.7162, allocations: 0 / 0.526 GB, free: 6.805 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001278/0.7163, allocations: 51.88 kB / 0.5261 GB, free: 6.754 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004272/0.7206, allocations: 1.996 MB / 0.528 GB, free: 4.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.7207, allocations: 16.03 kB / 0.5281 GB, free: 4.691 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005144/0.7212, allocations: 265.7 kB / 0.5283 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007958/0.722, allocations: 261.2 kB / 0.5286 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/0.7251, allocations: 1.404 MB / 0.5299 GB, free: 2.703 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.7252, allocations: 139.6 kB / 0.5301 GB, free: 2.566 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003518/0.7256, allocations: 179.9 kB / 0.5302 GB, free: 2.391 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004261/0.7298, allocations: 2.329 MB / 0.5325 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.713e-05/0.7299, allocations: 11.91 kB / 0.5325 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001951/0.7301, allocations: 83.94 kB / 0.5326 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.073e-05/0.7302, allocations: 83.5 kB / 0.5327 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003189/0.7334, allocations: 1.841 MB / 0.5345 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01242/0.7459, allocations: 7.475 MB / 0.5418 GB, free: 6.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001821/0.7477, allocations: 1.296 MB / 0.543 GB, free: 4.895 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.7491, allocations: 0.8177 MB / 0.5438 GB, free: 4.078 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002911/0.7494, allocations: 137.8 kB / 0.544 GB, free: 3.926 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.7494, allocations: 43.34 kB / 0.544 GB, free: 3.875 MB / 426.7 MB Notification: Performance of pre-optimization done (n=87): time 2.484e-06/0.7494, allocations: 0 / 0.544 GB, free: 3.875 MB / 426.7 MB Notification: Performance of matching and sorting (n=103): time 0.1969/0.9464, allocations: 4.094 MB / 0.548 GB, free: 107.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.9465, allocations: 63.16 kB / 0.5481 GB, free: 107.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.9486, allocations: 1.181 MB / 0.5492 GB, free: 107.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.9488, allocations: 46.7 kB / 0.5493 GB, free: 107.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006397/0.9495, allocations: 0.892 MB / 0.5501 GB, free: 107.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.9499, allocations: 364.2 kB / 0.5505 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.9499, allocations: 23.97 kB / 0.5505 GB, free: 107.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.95, allocations: 356.5 kB / 0.5509 GB, free: 107.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009958/0.951, allocations: 0.605 MB / 0.5514 GB, free: 107.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.9521, allocations: 0.905 MB / 0.5523 GB, free: 106.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.9532, allocations: 0.7426 MB / 0.5531 GB, free: 106.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.9532, allocations: 2.188 kB / 0.5531 GB, free: 106.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004692/0.9579, allocations: 2.385 MB / 0.5554 GB, free: 106.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.958, allocations: 14.25 kB / 0.5554 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.588e-05/0.958, allocations: 9.406 kB / 0.5554 GB, free: 106.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002189/0.9602, allocations: 0.7706 MB / 0.5562 GB, free: 106.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009677/0.9612, allocations: 235.1 kB / 0.5564 GB, free: 106.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01187/0.9731, allocations: 8.551 MB / 0.5647 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.9747, allocations: 85.42 kB / 0.5648 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002561/0.9749, allocations: 48.31 kB / 0.5649 GB, free: 103.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * 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,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003055/0.9753, allocations: 179.5 kB / 0.565 GB, free: 103.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003375/0.9756, allocations: 144.3 kB / 0.5652 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003501/0.9791, allocations: 1.86 MB / 0.567 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.9792, allocations: 10.41 kB / 0.567 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.9792, allocations: 7.297 kB / 0.567 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.9792, allocations: 6.422 kB / 0.567 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007305/0.9865, allocations: 3.963 MB / 0.5709 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.9865, allocations: 2.188 kB / 0.5709 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008566/0.9874, allocations: 200.9 kB / 0.5711 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.9886, allocations: 469.4 kB / 0.5715 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.102e-05/0.9887, allocations: 30.84 kB / 0.5716 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/0.9934, allocations: 6.161 MB / 0.5776 GB, free: 96.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.9934, allocations: 11.64 kB / 0.5776 GB, free: 96.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003301/0.9967, allocations: 2.861 MB / 0.5804 GB, free: 95.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007191/0.9974, allocations: 359.7 kB / 0.5807 GB, free: 95.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.9976, allocations: 27.61 kB / 0.5807 GB, free: 95.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007272/0.9984, allocations: 72.69 kB / 0.5808 GB, free: 95.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.9985, allocations: 87.64 kB / 0.5809 GB, free: 95.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-05/0.9986, allocations: 35.11 kB / 0.5809 GB, free: 95.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001081/0.9997, allocations: 0.9174 MB / 0.5818 GB, free: 94.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9997, allocations: 0 / 0.5818 GB, free: 94.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001468/1.001, allocations: 466.8 kB / 0.5823 GB, free: 94.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003906/1.005, allocations: 4.214 MB / 0.5864 GB, free: 92.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003051/1.008, allocations: 1.993 MB / 0.5883 GB, free: 91.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/1.008, allocations: 0 / 0.5883 GB, free: 91.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/1.01, allocations: 1.336 MB / 0.5896 GB, free: 90.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/1.012, allocations: 356.5 kB / 0.59 GB, free: 90.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005105/1.017, allocations: 3.826 MB / 0.5937 GB, free: 89.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/1.018, allocations: 1.727 MB / 0.5954 GB, free: 88.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008722/1.018, allocations: 317.1 kB / 0.5957 GB, free: 88.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007147/1.019, allocations: 0.7093 MB / 0.5964 GB, free: 87.66 MB / 426.7 MB Notification: Performance of SimCode: time 7.51e-07/1.019, allocations: 3.031 kB / 0.5964 GB, free: 87.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05042/1.07, allocations: 40.01 MB / 0.6355 GB, free: 64.59 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/1.07, allocations: 205.9 kB / 0.6357 GB, free: 64.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.062/4.132, allocations: 64 / 0.6357 GB, free: 64.36 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat