Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",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.001065/0.001065, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.297/1.297, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 95.17 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002513, allocations: 12 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2151, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.3395, allocations: 104.2 MB / 0.494 GB, free: 8.145 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.3398, allocations: 88.48 kB / 0.4941 GB, free: 8.059 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3145/0.6543, allocations: 44.66 MB / 0.5377 GB, free: 76.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.6543, allocations: 0 / 0.5377 GB, free: 76.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001698/0.6545, allocations: 55.94 kB / 0.5377 GB, free: 76.54 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005645/0.6602, allocations: 2.452 MB / 0.5401 GB, free: 74.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.6602, allocations: 11.97 kB / 0.5401 GB, free: 74.01 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007838/0.661, allocations: 299.3 kB / 0.5404 GB, free: 73.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007756/0.6618, allocations: 292.9 kB / 0.5407 GB, free: 73.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.6645, allocations: 1.554 MB / 0.5422 GB, free: 71.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-05/0.6646, allocations: 152 kB / 0.5424 GB, free: 71.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.6648, allocations: 207.9 kB / 0.5426 GB, free: 71.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/0.6686, allocations: 2.699 MB / 0.5452 GB, free: 68.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.993e-05/0.6687, allocations: 4 kB / 0.5452 GB, free: 68.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.6689, allocations: 87.98 kB / 0.5453 GB, free: 68.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.847e-05/0.6689, allocations: 87.94 kB / 0.5454 GB, free: 68.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00324/0.6722, allocations: 2.233 MB / 0.5475 GB, free: 66.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0111/0.6833, allocations: 8.43 MB / 0.5558 GB, free: 57.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.6851, allocations: 1.821 MB / 0.5576 GB, free: 55.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.6854, allocations: 146 kB / 0.5577 GB, free: 55.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.6854, allocations: 43.56 kB / 0.5577 GB, free: 55.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=107): time 3.617e-06/0.6854, allocations: 0 / 0.5577 GB, free: 55.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.01133/0.6967, allocations: 6.317 MB / 0.5639 GB, free: 48.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.6968, allocations: 68.41 kB / 0.564 GB, free: 48.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.6985, allocations: 1.321 MB / 0.5653 GB, free: 47.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.6986, allocations: 45.7 kB / 0.5653 GB, free: 47.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.699, allocations: 0.9797 MB / 0.5663 GB, free: 46.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.6992, allocations: 425.8 kB / 0.5667 GB, free: 46.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.6993, allocations: 28 kB / 0.5667 GB, free: 46.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.499e-05/0.6994, allocations: 365.9 kB / 0.567 GB, free: 45.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009164/0.7003, allocations: 0.7417 MB / 0.5678 GB, free: 44.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.7013, allocations: 1.046 MB / 0.5688 GB, free: 43.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.7024, allocations: 0.8886 MB / 0.5697 GB, free: 42.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.7024, allocations: 4 kB / 0.5697 GB, free: 42.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00322/0.7056, allocations: 2.369 MB / 0.572 GB, free: 40.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.7057, allocations: 16 kB / 0.572 GB, free: 40.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.7057, allocations: 8 kB / 0.572 GB, free: 40.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008751/0.7066, allocations: 406.2 kB / 0.5724 GB, free: 40.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.7079, allocations: 343.5 kB / 0.5727 GB, free: 39.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003854/0.7117, allocations: 4.742 MB / 0.5773 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.713, allocations: 95.92 kB / 0.5774 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000117/0.7131, allocations: 52 kB / 0.5775 GB, free: 34.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001219/0.7144, allocations: 0.7032 MB / 0.5782 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.7147, allocations: 170 kB / 0.5783 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.7179, allocations: 2.196 MB / 0.5805 GB, free: 31.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.718, allocations: 12 kB / 0.5805 GB, free: 31.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.718, allocations: 8 kB / 0.5805 GB, free: 31.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.718, allocations: 7.969 kB / 0.5805 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006863/0.7249, allocations: 4.586 MB / 0.585 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7249, allocations: 0 / 0.585 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.7259, allocations: 239.6 kB / 0.5852 GB, free: 26.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.7271, allocations: 463.1 kB / 0.5857 GB, free: 26.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-05/0.7272, allocations: 39.98 kB / 0.5857 GB, free: 26.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.7319, allocations: 6.31 MB / 0.5919 GB, free: 19.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.7319, allocations: 4.031 kB / 0.5919 GB, free: 19.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004246/0.7361, allocations: 3.382 MB / 0.5952 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009313/0.7371, allocations: 403.2 kB / 0.5955 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003835/0.7375, allocations: 31.98 kB / 0.5956 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.7385, allocations: 87.86 kB / 0.5957 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/0.7388, allocations: 108.8 kB / 0.5958 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.056e-05/0.7389, allocations: 39.98 kB / 0.5958 GB, free: 15.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001411/0.7403, allocations: 1.016 MB / 0.5968 GB, free: 14.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7403, allocations: 0 / 0.5968 GB, free: 14.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001643/0.7419, allocations: 499.9 kB / 0.5973 GB, free: 13.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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.004758/0.7467, allocations: 4.747 MB / 0.6019 GB, free: 8.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003131/0.7498, allocations: 2.305 MB / 0.6042 GB, free: 6.418 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.7499, allocations: 0 / 0.6042 GB, free: 6.418 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.7518, allocations: 1.516 MB / 0.6056 GB, free: 4.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.7536, allocations: 418.5 kB / 0.606 GB, free: 4.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02576/0.7794, allocations: 19.35 MB / 0.6249 GB, free: 432 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002278/0.7817, allocations: 1.865 MB / 0.6268 GB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001619/0.7834, allocations: 397.5 kB / 0.6271 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001253/0.7846, allocations: 0.7883 MB / 0.6279 GB, free: 13.34 MB / 410.7 MB Notification: Performance of SimCode: time 8.52e-07/0.7847, allocations: 0 / 0.6279 GB, free: 13.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2789/1.064, allocations: 42.9 MB / 0.6698 GB, free: 113.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/1.064, allocations: 227.5 kB / 0.67 GB, free: 113.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.182/4.246, allocations: 0 / 0.67 GB, free: 113.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat