Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",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.001117/0.001117, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008944/0.0008944, allocations: 91.95 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002443, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2381, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.3661, allocations: 107.7 MB / 0.4974 GB, free: 4.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.3664, allocations: 91.89 kB / 0.4975 GB, free: 4.578 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3154/0.6818, allocations: 58.1 MB / 0.5542 GB, free: 59.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.6819, allocations: 4 kB / 0.5542 GB, free: 59.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003623/0.6822, allocations: 87.88 kB / 0.5543 GB, free: 59.89 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.00835/0.6906, allocations: 3.229 MB / 0.5574 GB, free: 56.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.6907, allocations: 8.031 kB / 0.5574 GB, free: 56.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001675/0.6924, allocations: 420.8 kB / 0.5578 GB, free: 56.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/0.6946, allocations: 407.6 kB / 0.5582 GB, free: 55.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005441/0.7, allocations: 2.051 MB / 0.5602 GB, free: 53.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.7002, allocations: 213.7 kB / 0.5604 GB, free: 53.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.7013, allocations: 287.8 kB / 0.5607 GB, free: 53.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009265/0.7106, allocations: 3.805 MB / 0.5644 GB, free: 49.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001763/0.7108, allocations: 8 kB / 0.5644 GB, free: 49.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007398/0.7116, allocations: 120 kB / 0.5645 GB, free: 49.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/0.7117, allocations: 117.5 kB / 0.5647 GB, free: 48.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005795/0.7175, allocations: 3.059 MB / 0.5676 GB, free: 45.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02023/0.7377, allocations: 11.77 MB / 0.5791 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.7403, allocations: 3.687 MB / 0.5827 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002813/0.7406, allocations: 134.4 kB / 0.5829 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.7407, allocations: 63.91 kB / 0.5829 GB, free: 29.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.236e-06/0.7407, allocations: 0 / 0.5829 GB, free: 29.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.01553/0.7562, allocations: 8.355 MB / 0.5911 GB, free: 20.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.7563, allocations: 72.72 kB / 0.5912 GB, free: 20.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.7589, allocations: 1.8 MB / 0.5929 GB, free: 18.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/0.759, allocations: 53.7 kB / 0.593 GB, free: 18.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000671/0.7597, allocations: 1.355 MB / 0.5943 GB, free: 17.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/0.76, allocations: 0.5314 MB / 0.5948 GB, free: 16.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.714e-05/0.7601, allocations: 43.94 kB / 0.5949 GB, free: 16.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.7603, allocations: 381.9 kB / 0.5952 GB, free: 16.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.7614, allocations: 0.9135 MB / 0.5961 GB, free: 15.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.7627, allocations: 1.367 MB / 0.5974 GB, free: 14.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.764, allocations: 1.138 MB / 0.5986 GB, free: 12.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.764, allocations: 4 kB / 0.5986 GB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.00508/0.7691, allocations: 3.439 MB / 0.6019 GB, free: 9.477 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.7692, allocations: 15.12 kB / 0.6019 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.7692, allocations: 12 kB / 0.6019 GB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00253/0.7717, allocations: 1.04 MB / 0.603 GB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.7728, allocations: 331.4 kB / 0.6033 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01761/0.7905, allocations: 19.62 MB / 0.6224 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/0.7924, allocations: 99.89 kB / 0.6225 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002545/0.7927, allocations: 79.98 kB / 0.6226 GB, free: 2.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001979/0.7947, allocations: 0.9305 MB / 0.6235 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000545/0.7952, allocations: 225.3 kB / 0.6237 GB, free: 1.766 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005311/0.8006, allocations: 2.857 MB / 0.6265 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-05/0.8006, allocations: 19.98 kB / 0.6265 GB, free: 14.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/0.8006, allocations: 8 kB / 0.6265 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.8007, allocations: 11.97 kB / 0.6266 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.812, allocations: 6.042 MB / 0.6325 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.812, allocations: 0 / 0.6325 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.8128, allocations: 188 kB / 0.6326 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002473/0.8153, allocations: 0.9441 MB / 0.6336 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.8154, allocations: 32 kB / 0.6336 GB, free: 7.453 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01713/0.8326, allocations: 17.5 MB / 0.6507 GB, free: 4.754 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8326, allocations: 0 / 0.6507 GB, free: 4.754 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006742/0.8393, allocations: 4.227 MB / 0.6548 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.8412, allocations: 486.4 kB / 0.6553 GB, free: 15.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005462/0.8418, allocations: 39.98 kB / 0.6553 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.8431, allocations: 115.9 kB / 0.6554 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000399/0.8435, allocations: 149 kB / 0.6556 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.8436, allocations: 48 kB / 0.6556 GB, free: 15.53 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002566/0.8462, allocations: 1.369 MB / 0.6569 GB, free: 14.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8462, allocations: 0 / 0.6569 GB, free: 14.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003788/0.85, allocations: 0.7227 MB / 0.6576 GB, free: 13.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007983/0.858, allocations: 5.669 MB / 0.6632 GB, free: 7.633 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005669/0.8637, allocations: 3.569 MB / 0.6667 GB, free: 3.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/0.8638, allocations: 8.312 kB / 0.6667 GB, free: 3.922 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003272/0.867, allocations: 2.299 MB / 0.6689 GB, free: 1.504 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003303/0.8704, allocations: 0.6299 MB / 0.6695 GB, free: 0.875 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.219/1.089, allocations: 19.15 MB / 0.6882 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/1.091, allocations: 2.361 MB / 0.6905 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00168/1.093, allocations: 479.9 kB / 0.691 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/1.094, allocations: 1.077 MB / 0.6921 GB, free: 102.7 MB / 442.7 MB Notification: Performance of SimCode: time 7.82e-07/1.094, allocations: 3.281 kB / 0.6921 GB, free: 102.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09508/1.189, allocations: 62.76 MB / 0.7533 GB, free: 69.32 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/1.189, allocations: 239.3 kB / 0.7536 GB, free: 69.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.784/4.974, allocations: 0 / 0.7536 GB, free: 69.08 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat