Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 93.8 kB / 16.3 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001915/0.001915, allocations: 182.9 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 241.1 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002875/0.0002877, allocations: 5.625 kB / 300.8 MB, free: 5.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1093, allocations: 50.42 MB / 351.2 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01491/0.1242, allocations: 8.88 MB / 360.1 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.1356, allocations: 3.496 MB / 363.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002785/0.1384, allocations: 59.69 kB / 363.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003378/0.1418, allocations: 0.6802 MB / 364.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005273/0.1471, allocations: 0.7827 MB / 365.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.1491, allocations: 295.5 kB / 365.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006519/0.1556, allocations: 1.918 MB / 367.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003437/0.1591, allocations: 1.848 MB / 369.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002171/0.1612, allocations: 0.9418 MB / 370.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002711/0.164, allocations: 1.237 MB / 371.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004563/0.1645, allocations: 152 kB / 371.5 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009553/0.1654, allocations: 219.9 kB / 371.7 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.1665, allocations: 0.7594 MB / 372.5 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009302/0.1675, allocations: 0.5627 MB / 373 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004795/0.1723, allocations: 3.876 MB / 376.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1723, allocations: 4 kB / 376.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1723, allocations: 0 / 376.9 MB, free: 1.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002124/0.1726, allocations: 0 / 376.9 MB, free: 1.547 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008776/0.1813, allocations: 2.872 MB / 379.8 MB, free: 14.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.1814, allocations: 8.031 kB / 379.8 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001361/0.1828, allocations: 370.7 kB / 380.2 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.1844, allocations: 344 kB / 380.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00495/0.1894, allocations: 1.729 MB / 382.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002721/0.1897, allocations: 193 kB / 382.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008481/0.1906, allocations: 255.9 kB / 382.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009289/0.1999, allocations: 3.248 MB / 385.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.2001, allocations: 0 / 385.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006559/0.2007, allocations: 104 kB / 386 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001735/0.2009, allocations: 124.9 kB / 386.1 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006725/0.2076, allocations: 2.732 MB / 388.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02195/0.2296, allocations: 10.47 MB / 399.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002188/0.2319, allocations: 1.354 MB / 400.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003361/0.2322, allocations: 208.3 kB / 400.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.2323, allocations: 43.56 kB / 400.9 MB, free: 8.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.236e-06/0.2323, allocations: 0 / 400.9 MB, free: 8.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01684/0.2492, allocations: 6.955 MB / 407.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.2493, allocations: 64.41 kB / 408 MB, free: 1.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/0.253, allocations: 1.731 MB / 409.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.2532, allocations: 49.64 kB / 409.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001174/0.2544, allocations: 1.271 MB / 411 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.2549, allocations: 421.9 kB / 411.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.2551, allocations: 32 kB / 411.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002634/0.2554, allocations: 369.9 kB / 411.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.2568, allocations: 0.773 MB / 412.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.2587, allocations: 1.284 MB / 413.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.2605, allocations: 0.9823 MB / 414.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.316e-05/0.2605, allocations: 8 kB / 414.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004796/0.2653, allocations: 2.482 MB / 417.3 MB, free: 8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/0.2654, allocations: 14.81 kB / 417.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.634e-05/0.2654, allocations: 16 kB / 417.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000691/0.2661, allocations: 243.5 kB / 417.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.2677, allocations: 415.3 kB / 418 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00293/0.2706, allocations: 3.033 MB / 421.1 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.2725, allocations: 135.8 kB / 421.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.2727, allocations: 68 kB / 421.3 MB, free: 3.816 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002115/0.2748, allocations: 0.8251 MB / 422.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006835/0.2755, allocations: 185.7 kB / 422.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/0.2795, allocations: 2.054 MB / 424.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.2796, allocations: 12 kB / 424.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.2796, allocations: 0 / 424.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.2796, allocations: 3.984 kB / 424.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2909/0.5705, allocations: 4.72 MB / 429.1 MB, free: 61.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.5706, allocations: 3.531 kB / 429.1 MB, free: 61.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/0.5717, allocations: 266.9 kB / 429.3 MB, free: 61.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000595/0.5723, allocations: 205.8 kB / 429.5 MB, free: 61.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.39e-05/0.5724, allocations: 24.42 kB / 429.5 MB, free: 61.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/0.5747, allocations: 3.016 MB / 432.6 MB, free: 59.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.5747, allocations: 6.781 kB / 432.6 MB, free: 59.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005259/0.58, allocations: 3.287 MB / 435.8 MB, free: 58.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.5812, allocations: 425.7 kB / 436.3 MB, free: 58.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002452/0.5815, allocations: 24.95 kB / 436.3 MB, free: 58.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000928/0.5824, allocations: 98.16 kB / 436.4 MB, free: 58.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.5826, allocations: 81.95 kB / 436.5 MB, free: 58.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.5827, allocations: 34.08 kB / 436.5 MB, free: 58.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.5849, allocations: 1.167 MB / 437.7 MB, free: 58.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5849, allocations: 0 / 437.7 MB, free: 58.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001777/0.5867, allocations: 489.4 kB / 438.1 MB, free: 58.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00471/0.5914, allocations: 4.479 MB / 442.6 MB, free: 56.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003082/0.5945, allocations: 2.344 MB / 445 MB, free: 55.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.5945, allocations: 1.375 kB / 445 MB, free: 55.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.5961, allocations: 1.349 MB / 446.3 MB, free: 54.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.598, allocations: 455 kB / 446.8 MB, free: 54.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02215/0.6202, allocations: 26.08 MB / 472.8 MB, free: 29.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.6215, allocations: 2.062 MB / 474.9 MB, free: 27.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.6228, allocations: 0.496 MB / 475.4 MB, free: 27.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009941/0.6238, allocations: 1.009 MB / 476.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6238, allocations: 0 / 476.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06031/0.6841, allocations: 42.52 MB / 0.5068 GB, free: 160 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.6844, allocations: 238.3 kB / 0.507 GB, free: 15.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.773/3.458, allocations: 0 / 0.507 GB, free: 15.91 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat