Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",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.001028/0.001029, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009583/0.000958, allocations: 92.38 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.061e-05/2.057e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3789/0.4844, allocations: 104.5 MB / 492 MB, free: 6.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.4847, allocations: 95.92 kB / 492.1 MB, free: 6.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1039/0.5886, allocations: 38.94 MB / 0.5186 GB, free: 14.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5886, allocations: 0 / 0.5186 GB, free: 14.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001405/0.5888, allocations: 47.92 kB / 0.5187 GB, free: 14.85 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003607/0.5924, allocations: 1.752 MB / 0.5204 GB, free: 13.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.5924, allocations: 16.02 kB / 0.5204 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007106/0.5931, allocations: 241.4 kB / 0.5206 GB, free: 12.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.5957, allocations: 1.262 MB / 0.5219 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.959e-05/0.5958, allocations: 48 kB / 0.5219 GB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.5961, allocations: 88 kB / 0.522 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002829/0.5989, allocations: 1.466 MB / 0.5234 GB, free: 9.875 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002966/0.6019, allocations: 1.731 MB / 0.5251 GB, free: 8.062 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.922e-05/0.6019, allocations: 7.906 kB / 0.5251 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.6021, allocations: 0 / 0.5251 GB, free: 8.055 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.96e-05/0.6022, allocations: 70.91 kB / 0.5252 GB, free: 7.984 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009918/0.6121, allocations: 6.558 MB / 0.5316 GB, free: 1.141 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006401/0.6128, allocations: 459.9 kB / 0.532 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003445/0.6131, allocations: 262.8 kB / 0.5323 GB, free: 436 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002554/0.6157, allocations: 1.416 MB / 0.5337 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.6157, allocations: 38.56 kB / 0.5337 GB, free: 14.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 2.584e-06/0.6158, allocations: 4 kB / 0.5337 GB, free: 14.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.004775/0.6205, allocations: 2.477 MB / 0.5361 GB, free: 12.36 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.6206, allocations: 55.84 kB / 0.5362 GB, free: 12.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.6222, allocations: 1.176 MB / 0.5373 GB, free: 11.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.6223, allocations: 25.7 kB / 0.5374 GB, free: 11.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006924/0.623, allocations: 1.04 MB / 0.5384 GB, free: 10.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001769/0.6232, allocations: 197.3 kB / 0.5386 GB, free: 9.832 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.6232, allocations: 0 / 0.5386 GB, free: 9.832 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.6234, allocations: 373.9 kB / 0.5389 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.6241, allocations: 459.8 kB / 0.5394 GB, free: 9.012 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.6253, allocations: 1.352 MB / 0.5407 GB, free: 7.199 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000879/0.6262, allocations: 0.7226 MB / 0.5414 GB, free: 6.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.6262, allocations: 12 kB / 0.5414 GB, free: 6.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002764/0.629, allocations: 1.822 MB / 0.5432 GB, free: 4.629 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.629, allocations: 21.25 kB / 0.5432 GB, free: 4.609 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/0.629, allocations: 32 kB / 0.5432 GB, free: 4.578 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005305/0.6296, allocations: 235 kB / 0.5434 GB, free: 4.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.6307, allocations: 379.3 kB / 0.5438 GB, free: 3.969 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.6322, allocations: 1.689 MB / 0.5455 GB, free: 2.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.6335, allocations: 87.55 kB / 0.5455 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.6337, allocations: 99.97 kB / 0.5456 GB, free: 1.977 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.6339, allocations: 184.1 kB / 0.5458 GB, free: 1.789 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001427/0.6353, allocations: 0.9184 MB / 0.5467 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.6355, allocations: 134.3 kB / 0.5468 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2834/0.9189, allocations: 0.9743 MB / 0.5478 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.919, allocations: 7.656 kB / 0.5478 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.919, allocations: 2 kB / 0.5478 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.919, allocations: 3.047 kB / 0.5478 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006483/0.9255, allocations: 2.896 MB / 0.5506 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.9255, allocations: 7.188 kB / 0.5506 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.9259, allocations: 94.77 kB / 0.5507 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006282/0.9266, allocations: 219.7 kB / 0.5509 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/0.9266, allocations: 9.594 kB / 0.5509 GB, free: 111.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003429/0.9301, allocations: 3.584 MB / 0.5544 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001614/0.9317, allocations: 1.932 MB / 0.5563 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.9343, allocations: 1.736 MB / 0.558 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006223/0.935, allocations: 285.9 kB / 0.5583 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.9351, allocations: 2.797 kB / 0.5583 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.9358, allocations: 43.59 kB / 0.5583 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.9359, allocations: 54.42 kB / 0.5584 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.285e-05/0.936, allocations: 17.91 kB / 0.5584 GB, free: 107.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001575/0.9376, allocations: 0.84 MB / 0.5592 GB, free: 107.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.9376, allocations: 0 / 0.5592 GB, free: 107.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002031/0.9396, allocations: 345.4 kB / 0.5596 GB, free: 107.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003084/0.9427, allocations: 3.38 MB / 0.5629 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002415/0.9451, allocations: 1.43 MB / 0.5643 GB, free: 104.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.9452, allocations: 1.094 kB / 0.5643 GB, free: 104.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.9464, allocations: 0.7755 MB / 0.565 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.9483, allocations: 314.8 kB / 0.5653 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005677/0.954, allocations: 2.68 MB / 0.5679 GB, free: 103.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001416/0.9555, allocations: 1.506 MB / 0.5694 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001393/0.9569, allocations: 330 kB / 0.5697 GB, free: 103.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000811/0.9577, allocations: 0.6162 MB / 0.5703 GB, free: 103.1 MB / 426.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9577, allocations: 0 / 0.5703 GB, free: 103.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06223/1.02, allocations: 30.36 MB / 0.6 GB, free: 100.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/1.02, allocations: 161.8 kB / 0.6001 GB, free: 100.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.764/3.784, allocations: 1.344 kB / 0.6001 GB, free: 100.3 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat