Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",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.002294/0.002293, allocations: 178 kB / 8.362 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 1.987/1.987, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001194/0.001193, allocations: 91.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.858e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3381, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.5606, allocations: 106.5 MB / 469 MB, free: 11.62 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/0.561, allocations: 95.92 kB / 469.1 MB, free: 11.53 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5036/1.065, allocations: 49.51 MB / 0.5064 GB, free: 97.29 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.216e-06/1.065, allocations: 0 / 0.5064 GB, free: 97.29 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003423/1.065, allocations: 66.75 kB / 0.5065 GB, free: 97.29 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.01026/1.075, allocations: 2.494 MB / 0.5089 GB, free: 96.31 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/1.075, allocations: 8.406 kB / 0.5089 GB, free: 96.31 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002307/1.078, allocations: 342.5 kB / 0.5093 GB, free: 96.15 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006862/1.085, allocations: 1.775 MB / 0.511 GB, free: 95.7 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/1.085, allocations: 79.2 kB / 0.5111 GB, free: 95.7 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/1.086, allocations: 140.7 kB / 0.5112 GB, free: 95.7 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008193/1.094, allocations: 2.313 MB / 0.5135 GB, free: 95.68 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/1.104, allocations: 2.7 MB / 0.5161 GB, free: 95.3 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/1.104, allocations: 6.828 kB / 0.5161 GB, free: 95.3 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000332/1.105, allocations: 2.938 kB / 0.5161 GB, free: 95.3 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/1.105, allocations: 101.1 kB / 0.5162 GB, free: 95.3 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02622/1.131, allocations: 9.321 MB / 0.5253 GB, free: 92.61 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003964/1.135, allocations: 2.128 MB / 0.5274 GB, free: 91.2 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002203/1.137, allocations: 0.894 MB / 0.5283 GB, free: 90.88 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004941/1.138, allocations: 223.6 kB / 0.5285 GB, free: 90.68 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/1.138, allocations: 47.34 kB / 0.5285 GB, free: 90.63 MB / 395.1 MB Notification: Performance of pre-optimization done (n=121): time 5.881e-06/1.138, allocations: 4 kB / 0.5285 GB, free: 90.63 MB / 395.1 MB Notification: Performance of matching and sorting (n=143): time 0.01655/1.155, allocations: 5.292 MB / 0.5337 GB, free: 88.5 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/1.155, allocations: 68 kB / 0.5338 GB, free: 88.43 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002985/1.158, allocations: 1.272 MB / 0.535 GB, free: 87.91 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003846/1.158, allocations: 25.7 kB / 0.535 GB, free: 87.88 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007418/1.159, allocations: 1.089 MB / 0.5361 GB, free: 86.99 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005976/1.16, allocations: 473 kB / 0.5365 GB, free: 86.62 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/1.16, allocations: 0 / 0.5365 GB, free: 86.62 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/1.16, allocations: 373.9 kB / 0.5369 GB, free: 86.29 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/1.162, allocations: 0.7711 MB / 0.5377 GB, free: 86 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/1.163, allocations: 1.14 MB / 0.5388 GB, free: 85.26 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/1.165, allocations: 0.9548 MB / 0.5397 GB, free: 84.9 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/1.165, allocations: 0 / 0.5397 GB, free: 84.9 MB / 395.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006079/1.172, allocations: 2.47 MB / 0.5421 GB, free: 84.08 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/1.172, allocations: 12.41 kB / 0.5421 GB, free: 84.08 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/1.172, allocations: 15.09 kB / 0.5421 GB, free: 84.07 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002276/1.174, allocations: 0.5742 MB / 0.5427 GB, free: 83.91 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/1.177, allocations: 369.9 kB / 0.543 GB, free: 83.89 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/1.187, allocations: 6.075 MB / 0.549 GB, free: 79.96 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002644/1.19, allocations: 81.52 kB / 0.5491 GB, free: 79.95 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004364/1.19, allocations: 67.8 kB / 0.5491 GB, free: 79.94 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 171 * 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: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004283/1.191, allocations: 143.3 kB / 0.5493 GB, free: 79.8 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006008/1.197, allocations: 2.245 MB / 0.5515 GB, free: 78.98 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007339/1.198, allocations: 177 kB / 0.5516 GB, free: 78.89 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006119/1.204, allocations: 2.393 MB / 0.554 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/1.204, allocations: 16.03 kB / 0.554 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/1.204, allocations: 3.562 kB / 0.554 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/1.204, allocations: 14.98 kB / 0.554 GB, free: 78 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/1.217, allocations: 4.861 MB / 0.5587 GB, free: 76.03 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/1.217, allocations: 11.47 kB / 0.5587 GB, free: 76.02 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/1.219, allocations: 234.3 kB / 0.559 GB, free: 75.83 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002732/1.222, allocations: 0.6354 MB / 0.5596 GB, free: 75.32 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001885/1.222, allocations: 22.52 kB / 0.5596 GB, free: 75.31 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/1.233, allocations: 7.734 MB / 0.5672 GB, free: 67.97 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/1.233, allocations: 4 kB / 0.5672 GB, free: 67.96 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007847/1.241, allocations: 3.715 MB / 0.5708 GB, free: 64.59 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/1.243, allocations: 442.7 kB / 0.5712 GB, free: 64.18 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004837/1.243, allocations: 11.84 kB / 0.5712 GB, free: 64.18 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.245, allocations: 82.28 kB / 0.5713 GB, free: 64.12 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/1.246, allocations: 129.4 kB / 0.5714 GB, free: 64.04 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.246, allocations: 39.89 kB / 0.5715 GB, free: 64.01 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.00187/1.248, allocations: 0.9619 MB / 0.5724 GB, free: 63.15 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.41e-07/1.248, allocations: 0 / 0.5724 GB, free: 63.15 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002534/1.25, allocations: 0.4921 MB / 0.5729 GB, free: 62.66 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008536/1.259, allocations: 5.123 MB / 0.5779 GB, free: 57.94 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00553/1.264, allocations: 2.391 MB / 0.5802 GB, free: 55.75 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.264, allocations: 128 / 0.5802 GB, free: 55.75 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003741/1.268, allocations: 1.576 MB / 0.5818 GB, free: 54.33 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/1.271, allocations: 346.8 kB / 0.5821 GB, free: 54.07 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01197/1.283, allocations: 4.696 MB / 0.5867 GB, free: 49.95 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/1.285, allocations: 2.041 MB / 0.5887 GB, free: 48.32 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/1.287, allocations: 0.924 MB / 0.5896 GB, free: 47.47 MB / 395.1 MB Notification: Performance of SimCode: time 1.422e-06/1.287, allocations: 0 / 0.5896 GB, free: 47.47 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.002/5.29, allocations: 76.59 MB / 0.6644 GB, free: 102.1 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat