Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",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.00233/0.00233, 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 2.177/2.177, 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.001088/0.001088, allocations: 81.75 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.078e-05, allocations: 0 / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3513, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1815/0.533, allocations: 109.4 MB / 471.9 MB, free: 8.711 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003521/0.5334, allocations: 87.95 kB / 472 MB, free: 8.625 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5137/1.047, allocations: 54.25 MB / 0.5139 GB, free: 97.75 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.584e-06/1.047, allocations: 4 kB / 0.5139 GB, free: 97.75 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003732/1.048, allocations: 71.88 kB / 0.5139 GB, free: 97.73 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01102/1.059, allocations: 2.642 MB / 0.5165 GB, free: 96.6 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/1.059, allocations: 9.531 kB / 0.5165 GB, free: 96.6 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002705/1.061, allocations: 363.8 kB / 0.5169 GB, free: 96.44 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008442/1.07, allocations: 1.943 MB / 0.5188 GB, free: 95.95 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/1.07, allocations: 78.88 kB / 0.5189 GB, free: 95.95 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001147/1.071, allocations: 154.1 kB / 0.519 GB, free: 95.95 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008233/1.08, allocations: 2.556 MB / 0.5215 GB, free: 95.93 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/1.09, allocations: 2.968 MB / 0.5244 GB, free: 95.47 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001385/1.09, allocations: 6.766 kB / 0.5244 GB, free: 95.47 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005734/1.091, allocations: 3.625 kB / 0.5244 GB, free: 95.47 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/1.091, allocations: 109.8 kB / 0.5245 GB, free: 95.46 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02786/1.119, allocations: 10.44 MB / 0.5347 GB, free: 90.25 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003946/1.123, allocations: 2.345 MB / 0.537 GB, free: 88.69 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002211/1.125, allocations: 1.012 MB / 0.538 GB, free: 88.31 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004316/1.125, allocations: 133.7 kB / 0.5381 GB, free: 88.22 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/1.126, allocations: 53.16 kB / 0.5382 GB, free: 88.16 MB / 395.1 MB Notification: Performance of pre-optimization done (n=136): time 5.09e-06/1.126, allocations: 0 / 0.5382 GB, free: 88.16 MB / 395.1 MB Notification: Performance of matching and sorting (n=150): time 0.01426/1.14, allocations: 4.956 MB / 0.543 GB, free: 86.03 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/1.14, allocations: 95.98 kB / 0.5431 GB, free: 85.93 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/1.143, allocations: 1.33 MB / 0.5444 GB, free: 85.39 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004214/1.143, allocations: 25.7 kB / 0.5444 GB, free: 85.36 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/1.144, allocations: 1.161 MB / 0.5456 GB, free: 84.4 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007124/1.145, allocations: 498.4 kB / 0.546 GB, free: 84.02 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.145, allocations: 0 / 0.546 GB, free: 84.02 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/1.145, allocations: 386.2 kB / 0.5464 GB, free: 83.67 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001699/1.147, allocations: 0.7855 MB / 0.5472 GB, free: 83.37 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00202/1.149, allocations: 1.231 MB / 0.5484 GB, free: 82.5 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/1.151, allocations: 0.972 MB / 0.5493 GB, free: 82.12 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.936e-05/1.151, allocations: 7.938 kB / 0.5493 GB, free: 82.12 MB / 395.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006224/1.158, allocations: 2.496 MB / 0.5518 GB, free: 81.18 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001123/1.159, allocations: 5.4 MB / 0.557 GB, free: 75.41 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.346e-05/1.159, allocations: 17.8 kB / 0.557 GB, free: 75.41 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/1.162, allocations: 0.6558 MB / 0.5577 GB, free: 75.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/1.164, allocations: 371.5 kB / 0.558 GB, free: 75.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/1.176, allocations: 7.945 MB / 0.5658 GB, free: 69.62 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/1.179, allocations: 76.3 kB / 0.5659 GB, free: 69.62 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004026/1.18, allocations: 74.81 kB / 0.5659 GB, free: 69.61 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.18, allocations: 7.844 kB / 0.566 GB, free: 69.6 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006073/1.186, allocations: 2.387 MB / 0.5683 GB, free: 67.64 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.987e-05/1.186, allocations: 16 kB / 0.5683 GB, free: 67.63 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002021/1.188, allocations: 0.6496 MB / 0.5689 GB, free: 67.09 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002656/1.19, allocations: 373.4 kB / 0.5693 GB, free: 66.78 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/1.202, allocations: 7.957 MB / 0.5771 GB, free: 59.26 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/1.204, allocations: 80.05 kB / 0.5771 GB, free: 59.21 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/1.204, allocations: 68 kB / 0.5772 GB, free: 59.14 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: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005664/1.205, allocations: 156 kB / 0.5774 GB, free: 58.99 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005815/1.211, allocations: 2.289 MB / 0.5796 GB, free: 57 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007774/1.211, allocations: 197.5 kB / 0.5798 GB, free: 56.81 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006085/1.217, allocations: 2.408 MB / 0.5821 GB, free: 54.79 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/1.218, allocations: 16 kB / 0.5821 GB, free: 54.78 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/1.218, allocations: 4 kB / 0.5821 GB, free: 54.77 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/1.218, allocations: 14.03 kB / 0.5822 GB, free: 54.77 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/1.231, allocations: 4.891 MB / 0.5869 GB, free: 50.75 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/1.231, allocations: 3.797 kB / 0.5869 GB, free: 50.75 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/1.233, allocations: 232.6 kB / 0.5872 GB, free: 50.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002835/1.236, allocations: 0.6902 MB / 0.5878 GB, free: 49.96 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003512/1.237, allocations: 4 kB / 0.5878 GB, free: 49.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/1.25, allocations: 9.413 MB / 0.597 GB, free: 40.09 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/1.25, allocations: 7.953 kB / 0.597 GB, free: 40.09 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008621/1.259, allocations: 3.709 MB / 0.6007 GB, free: 36.27 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/1.261, allocations: 450.7 kB / 0.6011 GB, free: 35.8 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009156/1.262, allocations: 12 kB / 0.6011 GB, free: 35.79 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/1.265, allocations: 79.88 kB / 0.6012 GB, free: 35.71 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007023/1.265, allocations: 113.1 kB / 0.6013 GB, free: 35.61 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001885/1.265, allocations: 47.95 kB / 0.6013 GB, free: 35.56 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002496/1.268, allocations: 0.9973 MB / 0.6023 GB, free: 34.57 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.268, allocations: 0 / 0.6023 GB, free: 34.57 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.006688/1.275, allocations: 0.9023 MB / 0.6032 GB, free: 33.67 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01018/1.285, allocations: 5.147 MB / 0.6082 GB, free: 28.47 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.01024/1.295, allocations: 4.24 MB / 0.6124 GB, free: 24.13 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.295, allocations: 0 / 0.6124 GB, free: 24.13 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003792/1.299, allocations: 1.637 MB / 0.614 GB, free: 22.45 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004631/1.304, allocations: 486.6 kB / 0.6144 GB, free: 22.01 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.322, allocations: 5.332 MB / 0.6196 GB, free: 16.62 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002994/1.325, allocations: 2.125 MB / 0.6217 GB, free: 14.46 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/1.328, allocations: 0.9835 MB / 0.6227 GB, free: 13.48 MB / 395.1 MB Notification: Performance of SimCode: time 1.924e-06/1.328, allocations: 4 kB / 0.6227 GB, free: 13.47 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.323/5.651, allocations: 95.17 MB / 0.7156 GB, free: 70.28 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat