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.001163/0.001163, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.357/1.357, allocations: 221.4 MB / 235.5 MB, free: 2.867 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.0009045/0.0009043, allocations: 99.72 kB / 286.5 MB, free: 160 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.714e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 50.41 MB / 394.3 MB, free: 1.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3992/0.5087, allocations: 107.6 MB / 0.4902 GB, free: 11.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.509, allocations: 87.94 kB / 0.4903 GB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1532/0.6622, allocations: 58.23 MB / 0.5472 GB, free: 1.004 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6623, allocations: 4 kB / 0.5472 GB, free: 1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004099/0.6627, allocations: 87.81 kB / 0.5473 GB, free: 0.9141 MB / 426.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.2555/0.9182, allocations: 2.883 MB / 0.5501 GB, free: 95.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.9183, allocations: 10.28 kB / 0.5501 GB, free: 95.96 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001622/0.9199, allocations: 412.6 kB / 0.5505 GB, free: 95.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001908/0.9218, allocations: 409.2 kB / 0.5509 GB, free: 95.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006021/0.9279, allocations: 2.04 MB / 0.5529 GB, free: 95.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/0.9282, allocations: 214.5 kB / 0.5531 GB, free: 95.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008256/0.929, allocations: 290.4 kB / 0.5533 GB, free: 95.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007892/0.9369, allocations: 3.741 MB / 0.557 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.738e-05/0.937, allocations: 9.375 kB / 0.557 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002984/0.9373, allocations: 128.6 kB / 0.5571 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001358/0.9375, allocations: 114.5 kB / 0.5572 GB, free: 94.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005409/0.9429, allocations: 2.988 MB / 0.5602 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02094/0.9639, allocations: 11.78 MB / 0.5717 GB, free: 91.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.9666, allocations: 3.655 MB / 0.5752 GB, free: 89.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.968, allocations: 1.132 MB / 0.5763 GB, free: 88.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.9683, allocations: 142.9 kB / 0.5765 GB, free: 88.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.9683, allocations: 49.72 kB / 0.5765 GB, free: 88.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=139): time 3.536e-06/0.9683, allocations: 0 / 0.5765 GB, free: 88.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.01165/0.98, allocations: 6.503 MB / 0.5829 GB, free: 86.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.9801, allocations: 69.53 kB / 0.5829 GB, free: 86.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/0.9827, allocations: 1.783 MB / 0.5847 GB, free: 85.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000208/0.9829, allocations: 52.77 kB / 0.5847 GB, free: 85.49 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000691/0.9836, allocations: 1.357 MB / 0.5861 GB, free: 84.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003787/0.984, allocations: 0.5392 MB / 0.5866 GB, free: 84.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.9841, allocations: 38.47 kB / 0.5866 GB, free: 84.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.442e-05/0.9842, allocations: 376.8 kB / 0.587 GB, free: 83.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.9853, allocations: 0.8825 MB / 0.5878 GB, free: 83.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.9866, allocations: 1.333 MB / 0.5891 GB, free: 82.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.9879, allocations: 1.117 MB / 0.5902 GB, free: 82.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.9879, allocations: 6.375 kB / 0.5902 GB, free: 82.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004803/0.9927, allocations: 3.373 MB / 0.5935 GB, free: 80.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.9928, allocations: 9.281 kB / 0.5935 GB, free: 80.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.9928, allocations: 19.78 kB / 0.5936 GB, free: 80.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/0.9952, allocations: 1.034 MB / 0.5946 GB, free: 80.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.9963, allocations: 330.1 kB / 0.5949 GB, free: 80.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01338/1.01, allocations: 19.2 MB / 0.6136 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/1.012, allocations: 103.8 kB / 0.6137 GB, free: 65.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/1.012, allocations: 81.91 kB / 0.6138 GB, free: 65.07 MB / 426.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 () * 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%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003212/1.012, allocations: 218 kB / 0.614 GB, free: 64.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003117/1.012, allocations: 218.6 kB / 0.6142 GB, free: 64.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004102/1.017, allocations: 2.793 MB / 0.617 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/1.017, allocations: 18.47 kB / 0.617 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/1.017, allocations: 7.156 kB / 0.617 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/1.017, allocations: 6.047 kB / 0.617 GB, free: 63.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008543/1.025, allocations: 6.004 MB / 0.6228 GB, free: 61.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/1.025, allocations: 0 / 0.6228 GB, free: 61.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006997/1.026, allocations: 187.9 kB / 0.623 GB, free: 61.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/1.028, allocations: 0.9188 MB / 0.6239 GB, free: 60.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/1.028, allocations: 37.94 kB / 0.624 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/1.04, allocations: 17.11 MB / 0.6407 GB, free: 46.58 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.04, allocations: 4 kB / 0.6407 GB, free: 46.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005199/1.045, allocations: 4.117 MB / 0.6447 GB, free: 42.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.047, allocations: 489.7 kB / 0.6452 GB, free: 42.37 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002738/1.047, allocations: 35.23 kB / 0.6452 GB, free: 42.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/1.048, allocations: 123.3 kB / 0.6453 GB, free: 42.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/1.048, allocations: 146 kB / 0.6454 GB, free: 42.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.099e-05/1.048, allocations: 40 kB / 0.6455 GB, free: 42.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00165/1.05, allocations: 1.349 MB / 0.6468 GB, free: 40.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.05, allocations: 4 kB / 0.6468 GB, free: 40.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002247/1.052, allocations: 0.7258 MB / 0.6475 GB, free: 40.15 MB / 426.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 () * 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.005683/1.058, allocations: 5.548 MB / 0.6529 GB, free: 35.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004419/1.062, allocations: 3.518 MB / 0.6564 GB, free: 31.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.062, allocations: 0 / 0.6564 GB, free: 31.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002649/1.065, allocations: 2.234 MB / 0.6586 GB, free: 29.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004002/1.069, allocations: 0.6393 MB / 0.6592 GB, free: 29.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/1.082, allocations: 5.407 MB / 0.6645 GB, free: 24.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002572/1.084, allocations: 2.356 MB / 0.6668 GB, free: 22.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002129/1.087, allocations: 484.2 kB / 0.6672 GB, free: 22.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/1.088, allocations: 1.076 MB / 0.6683 GB, free: 21.24 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/1.088, allocations: 4 kB / 0.6683 GB, free: 21.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3363/1.425, allocations: 64.11 MB / 0.7309 GB, free: 100.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/1.425, allocations: 208.8 kB / 0.7311 GB, free: 100.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.839/5.263, allocations: 0 / 0.7311 GB, free: 100.6 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