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.001586/0.001586, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001113/0.001112, allocations: 89.55 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005516/0.0005515, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3308, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1718/0.5027, allocations: 107.3 MB / 481.9 MB, free: 5.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/0.503, allocations: 91.95 kB / 482 MB, free: 5.219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4655/0.9685, allocations: 50.1 MB / 0.5197 GB, free: 94.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.9686, allocations: 3.938 kB / 0.5197 GB, free: 94.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002373/0.9688, allocations: 60.53 kB / 0.5197 GB, free: 94.14 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.009955/0.9788, allocations: 2.817 MB / 0.5225 GB, free: 92.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.9789, allocations: 12.41 kB / 0.5225 GB, free: 92.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001397/0.9803, allocations: 337 kB / 0.5228 GB, free: 92.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00154/0.9818, allocations: 335 kB / 0.5231 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005924/0.9878, allocations: 1.784 MB / 0.5249 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.988, allocations: 172.7 kB / 0.525 GB, free: 90.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008399/0.9889, allocations: 235.8 kB / 0.5253 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008483/0.9974, allocations: 3.126 MB / 0.5283 GB, free: 86.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001127/0.9975, allocations: 3.938 kB / 0.5283 GB, free: 86.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.9979, allocations: 100 kB / 0.5284 GB, free: 86.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.9981, allocations: 100.6 kB / 0.5285 GB, free: 86.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007773/1.006, allocations: 2.594 MB / 0.531 GB, free: 84.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02416/1.03, allocations: 9.778 MB / 0.5406 GB, free: 74.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004312/1.034, allocations: 2.226 MB / 0.5428 GB, free: 71.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004888/1.035, allocations: 222.4 kB / 0.543 GB, free: 71.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/1.035, allocations: 51.5 kB / 0.543 GB, free: 71.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.466e-06/1.035, allocations: 0 / 0.543 GB, free: 71.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.02841/1.063, allocations: 7.842 MB / 0.5507 GB, free: 63.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/1.064, allocations: 72.66 kB / 0.5507 GB, free: 63.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003332/1.067, allocations: 1.523 MB / 0.5522 GB, free: 61.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003756/1.067, allocations: 53.7 kB / 0.5523 GB, free: 61.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007698/1.068, allocations: 1.07 MB / 0.5533 GB, free: 60.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006941/1.069, allocations: 484.8 kB / 0.5538 GB, free: 60.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/1.069, allocations: 32 kB / 0.5538 GB, free: 60.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/1.069, allocations: 370.8 kB / 0.5542 GB, free: 59.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/1.071, allocations: 0.8588 MB / 0.555 GB, free: 58.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002912/1.074, allocations: 1.236 MB / 0.5562 GB, free: 57.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003042/1.078, allocations: 1.025 MB / 0.5572 GB, free: 56.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/1.078, allocations: 11.94 kB / 0.5572 GB, free: 56.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.007734/1.085, allocations: 2.729 MB / 0.5599 GB, free: 53.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/1.085, allocations: 8 kB / 0.5599 GB, free: 53.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/1.085, allocations: 15.95 kB / 0.5599 GB, free: 53.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/1.088, allocations: 0.5901 MB / 0.5605 GB, free: 53.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/1.091, allocations: 363.5 kB / 0.5608 GB, free: 52.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.102, allocations: 6.546 MB / 0.5672 GB, free: 45.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/1.104, allocations: 119.9 kB / 0.5673 GB, free: 45.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002452/1.104, allocations: 63.98 kB / 0.5674 GB, free: 45.8 MB / 378.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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.002046/1.106, allocations: 0.7921 MB / 0.5682 GB, free: 45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005862/1.107, allocations: 197.6 kB / 0.5684 GB, free: 44.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007179/1.114, allocations: 2.631 MB / 0.5709 GB, free: 42.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/1.114, allocations: 16 kB / 0.571 GB, free: 42.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.114, allocations: 8.125 kB / 0.571 GB, free: 42.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/1.114, allocations: 7.969 kB / 0.571 GB, free: 42.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/1.129, allocations: 5.339 MB / 0.5762 GB, free: 36.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/1.13, allocations: 0 / 0.5762 GB, free: 36.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002011/1.132, allocations: 243.8 kB / 0.5764 GB, free: 36.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002833/1.134, allocations: 0.6319 MB / 0.577 GB, free: 35.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/1.135, allocations: 31.98 kB / 0.5771 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/1.148, allocations: 8.315 MB / 0.5852 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/1.148, allocations: 0 / 0.5852 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009949/1.158, allocations: 3.936 MB / 0.589 GB, free: 23.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.159, allocations: 462.7 kB / 0.5895 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004312/1.16, allocations: 24 kB / 0.5895 GB, free: 22.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/1.162, allocations: 99.89 kB / 0.5896 GB, free: 22.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004735/1.162, allocations: 133.1 kB / 0.5897 GB, free: 22.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/1.162, allocations: 39.98 kB / 0.5898 GB, free: 22.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002447/1.165, allocations: 1.175 MB / 0.5909 GB, free: 21.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.165, allocations: 0 / 0.5909 GB, free: 21.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002694/1.168, allocations: 0.5625 MB / 0.5915 GB, free: 20.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * 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.0103/1.178, allocations: 5.162 MB / 0.5965 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006484/1.185, allocations: 2.62 MB / 0.5991 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.185, allocations: 0.75 kB / 0.5991 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004324/1.189, allocations: 1.69 MB / 0.6007 GB, free: 10.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003367/1.192, allocations: 432.7 kB / 0.6011 GB, free: 10.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04431/1.237, allocations: 23.23 MB / 0.6238 GB, free: 2.309 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002908/1.24, allocations: 2.04 MB / 0.6258 GB, free: 236 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.242, allocations: 0.9365 MB / 0.6267 GB, free: 15.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/1.242, allocations: 4 kB / 0.6267 GB, free: 15.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.974/5.216, allocations: 78.31 MB / 0.7032 GB, free: 74.68 MB / 410.7 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