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_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.002314/0.002319, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.949/1.949, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001128/0.001128, allocations: 80.48 kB / 270.9 MB, free: 8.406 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.000392, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3523, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/0.5476, allocations: 113.3 MB / 487.9 MB, free: 15.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003602/0.548, allocations: 99.92 kB / 488 MB, free: 15.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.518/1.066, allocations: 58.33 MB / 0.5336 GB, free: 83.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.066, allocations: 0 / 0.5336 GB, free: 83.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003588/1.067, allocations: 83.88 kB / 0.5336 GB, free: 83.37 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01264/1.079, allocations: 3.264 MB / 0.5368 GB, free: 80.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/1.079, allocations: 8.031 kB / 0.5368 GB, free: 80.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001739/1.081, allocations: 421 kB / 0.5372 GB, free: 79.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002337/1.083, allocations: 396.3 kB / 0.5376 GB, free: 79.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008313/1.092, allocations: 2.195 MB / 0.5398 GB, free: 76.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002771/1.092, allocations: 221.7 kB / 0.54 GB, free: 76.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00119/1.093, allocations: 283.9 kB / 0.5402 GB, free: 76.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/1.105, allocations: 3.66 MB / 0.5438 GB, free: 72.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/1.105, allocations: 7.844 kB / 0.5438 GB, free: 72.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006492/1.105, allocations: 124 kB / 0.5439 GB, free: 72.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/1.106, allocations: 137.5 kB / 0.5441 GB, free: 72.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009849/1.116, allocations: 2.946 MB / 0.547 GB, free: 69.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0306/1.146, allocations: 11.67 MB / 0.5584 GB, free: 57.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004146/1.15, allocations: 1.977 MB / 0.5603 GB, free: 55.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005429/1.151, allocations: 223.5 kB / 0.5605 GB, free: 55.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/1.151, allocations: 47.88 kB / 0.5605 GB, free: 55.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 4.899e-06/1.151, allocations: 0 / 0.5605 GB, free: 55.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=149): time 0.02621/1.177, allocations: 7.638 MB / 0.568 GB, free: 47.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/1.177, allocations: 64.72 kB / 0.5681 GB, free: 47.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/1.181, allocations: 1.738 MB / 0.5698 GB, free: 45.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004219/1.182, allocations: 49.7 kB / 0.5698 GB, free: 45.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009914/1.183, allocations: 1.33 MB / 0.5711 GB, free: 44.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007069/1.184, allocations: 0.5123 MB / 0.5716 GB, free: 43.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/1.184, allocations: 32 kB / 0.5716 GB, free: 43.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/1.184, allocations: 386.8 kB / 0.572 GB, free: 43.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002209/1.186, allocations: 0.8862 MB / 0.5729 GB, free: 42.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002592/1.189, allocations: 1.418 MB / 0.5743 GB, free: 40.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002907/1.192, allocations: 1.123 MB / 0.5754 GB, free: 39.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.169e-05/1.192, allocations: 4 kB / 0.5754 GB, free: 39.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.008015/1.2, allocations: 2.923 MB / 0.5782 GB, free: 36.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/1.2, allocations: 16.92 kB / 0.5782 GB, free: 36.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/1.2, allocations: 16.44 kB / 0.5782 GB, free: 36.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/1.202, allocations: 0.5566 MB / 0.5788 GB, free: 35.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003207/1.206, allocations: 439.3 kB / 0.5792 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/1.217, allocations: 6.463 MB / 0.5855 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/1.22, allocations: 143.7 kB / 0.5857 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004825/1.22, allocations: 83.94 kB / 0.5857 GB, free: 28.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00277/1.223, allocations: 0.9091 MB / 0.5866 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000736/1.224, allocations: 209.4 kB / 0.5868 GB, free: 27.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007711/1.232, allocations: 2.692 MB / 0.5894 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/1.232, allocations: 12 kB / 0.5895 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/1.232, allocations: 11.95 kB / 0.5895 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.211e-05/1.232, allocations: 7.969 kB / 0.5895 GB, free: 24.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/1.248, allocations: 5.76 MB / 0.5951 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/1.249, allocations: 8 kB / 0.5951 GB, free: 18.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/1.251, allocations: 255.6 kB / 0.5954 GB, free: 18.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002695/1.254, allocations: 0.5764 MB / 0.5959 GB, free: 17.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003596/1.254, allocations: 39.98 kB / 0.596 GB, free: 17.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/1.267, allocations: 8.204 MB / 0.604 GB, free: 9.262 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.267, allocations: 4 kB / 0.604 GB, free: 9.258 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009664/1.277, allocations: 4.059 MB / 0.6079 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001786/1.278, allocations: 498.2 kB / 0.6084 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006189/1.279, allocations: 35.98 kB / 0.6084 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/1.281, allocations: 103.9 kB / 0.6085 GB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004205/1.282, allocations: 105.1 kB / 0.6086 GB, free: 4.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/1.282, allocations: 43.98 kB / 0.6087 GB, free: 4.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002994/1.285, allocations: 1.326 MB / 0.61 GB, free: 2.922 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.604e-06/1.285, allocations: 4 kB / 0.61 GB, free: 2.918 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003338/1.288, allocations: 0.621 MB / 0.6106 GB, free: 2.297 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 120 * 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 {(5,76.0%) 20,(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.01223/1.301, allocations: 5.49 MB / 0.616 GB, free: 12.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007821/1.308, allocations: 2.641 MB / 0.6185 GB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.309, allocations: 0 / 0.6185 GB, free: 10.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004689/1.313, allocations: 1.592 MB / 0.6201 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004579/1.318, allocations: 490 kB / 0.6206 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3523/1.67, allocations: 29.26 MB / 0.6491 GB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00361/1.674, allocations: 2.249 MB / 0.6513 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002984/1.677, allocations: 1.143 MB / 0.6524 GB, free: 105.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/1.677, allocations: 1.156 kB / 0.6524 GB, free: 105.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.639/5.316, allocations: 90.14 MB / 0.7405 GB, free: 41.64 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource_res.mat does not exist to compare? outputFormat=mat