Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001481/0.001481, allocations: 181.3 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 95.05 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.116e-05/2.129e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3427, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.5006, allocations: 97.56 MB / 460 MB, free: 4.617 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.501, allocations: 79.95 kB / 460.1 MB, free: 4.539 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1257/0.6267, allocations: 28.29 MB / 488.4 MB, free: 8.176 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.6267, allocations: 0 / 488.4 MB, free: 8.176 MB / 379.1 MB Notification: Performance of Transformations before backend: time 8.923e-05/0.6268, allocations: 24.66 kB / 488.4 MB, free: 8.152 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00323/0.6301, allocations: 1.144 MB / 489.5 MB, free: 6.961 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.6302, allocations: 8.031 kB / 489.5 MB, free: 6.953 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/0.6314, allocations: 194.3 kB / 489.7 MB, free: 6.762 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002655/0.6341, allocations: 0.801 MB / 490.5 MB, free: 5.918 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.6342, allocations: 39.92 kB / 490.6 MB, free: 5.879 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002147/0.6344, allocations: 59.95 kB / 490.6 MB, free: 5.82 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00175/0.6362, allocations: 0.539 MB / 491.2 MB, free: 5.281 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.6384, allocations: 0.7591 MB / 491.9 MB, free: 4.496 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.525e-05/0.6385, allocations: 11.91 kB / 491.9 MB, free: 4.484 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.6386, allocations: 4 kB / 491.9 MB, free: 4.48 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.244e-05/0.6386, allocations: 24 kB / 492 MB, free: 4.457 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008457/0.6471, allocations: 3.758 MB / 495.7 MB, free: 0.4961 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009186/0.6481, allocations: 420.5 kB / 496.1 MB, free: 56 kB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008017/0.6489, allocations: 237.9 kB / 496.4 MB, free: 15.82 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.307e-05/0.649, allocations: 8 kB / 496.4 MB, free: 15.81 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.649, allocations: 42.5 kB / 496.4 MB, free: 15.76 MB / 395.1 MB Notification: Performance of pre-optimization done (n=43): time 3.627e-06/0.649, allocations: 0 / 496.4 MB, free: 15.76 MB / 395.1 MB Notification: Performance of matching and sorting (n=48): time 0.003318/0.6524, allocations: 1.12 MB / 497.5 MB, free: 14.58 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.6525, allocations: 89.48 kB / 497.6 MB, free: 14.48 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/0.6538, allocations: 0.5937 MB / 498.2 MB, free: 13.88 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 8.238e-05/0.6539, allocations: 25.7 kB / 498.2 MB, free: 13.84 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.6544, allocations: 0.5939 MB / 498.8 MB, free: 13.24 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.6547, allocations: 161.6 kB / 499 MB, free: 13.08 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.453e-05/0.6547, allocations: 0 / 499 MB, free: 13.08 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.6549, allocations: 346.8 kB / 499.3 MB, free: 12.73 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.6553, allocations: 137.6 kB / 499.5 MB, free: 12.6 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006661/0.656, allocations: 436.3 kB / 499.9 MB, free: 12.04 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005666/0.6566, allocations: 216.6 kB / 0.4884 GB, free: 11.82 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/0.6566, allocations: 4 kB / 0.4884 GB, free: 11.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001771/0.6584, allocations: 0.6265 MB / 0.489 GB, free: 11.18 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.6585, allocations: 14.66 kB / 0.489 GB, free: 11.17 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.6585, allocations: 8 kB / 0.489 GB, free: 11.16 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004551/0.6589, allocations: 89.97 kB / 0.4891 GB, free: 11.07 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.66, allocations: 159.7 kB / 0.4893 GB, free: 10.91 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003561/0.6636, allocations: 2.887 MB / 0.4921 GB, free: 7.797 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.6646, allocations: 32 kB / 0.4921 GB, free: 7.766 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.906e-05/0.6647, allocations: 32.05 kB / 0.4921 GB, free: 7.734 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002444/0.665, allocations: 134.7 kB / 0.4923 GB, free: 7.598 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001263/0.6663, allocations: 440.7 kB / 0.4927 GB, free: 7.152 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.6665, allocations: 82.97 kB / 0.4928 GB, free: 7.07 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.6678, allocations: 462 kB / 0.4932 GB, free: 6.605 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.6678, allocations: 4 kB / 0.4932 GB, free: 6.602 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.6678, allocations: 3.953 kB / 0.4932 GB, free: 6.598 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.6679, allocations: 7.984 kB / 0.4932 GB, free: 6.59 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.671, allocations: 1.291 MB / 0.4945 GB, free: 5.223 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.6711, allocations: 0 / 0.4945 GB, free: 5.223 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006572/0.6717, allocations: 84.11 kB / 0.4946 GB, free: 5.141 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003945/0.6721, allocations: 81.61 kB / 0.4946 GB, free: 5.055 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.273e-05/0.6722, allocations: 8 kB / 0.4947 GB, free: 5.047 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003241/0.6755, allocations: 2.867 MB / 0.4975 GB, free: 1.949 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/0.6755, allocations: 8.094 kB / 0.4975 GB, free: 1.941 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.6773, allocations: 0.8209 MB / 0.4983 GB, free: 1.027 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004397/0.6778, allocations: 192.1 kB / 0.4984 GB, free: 0.8203 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.678, allocations: 0 / 0.4984 GB, free: 0.8203 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007219/0.6787, allocations: 27.97 kB / 0.4985 GB, free: 0.793 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.6788, allocations: 47.84 kB / 0.4985 GB, free: 0.7461 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.6789, allocations: 12 kB / 0.4985 GB, free: 0.7344 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009109/0.6798, allocations: 455.2 kB / 0.499 GB, free: 304 kB / 395.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6798, allocations: 0 / 0.499 GB, free: 304 kB / 395.1 MB Notification: Performance of remove unused functions: time 0.00136/0.6812, allocations: 192 kB / 0.4991 GB, free: 112 kB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2738/0.955, allocations: 1.991 MB / 0.5011 GB, free: 108.1 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.9567, allocations: 0.6432 MB / 0.5017 GB, free: 107.9 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.9568, allocations: 1.312 kB / 0.5017 GB, free: 107.9 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009336/0.9577, allocations: 422.4 kB / 0.5021 GB, free: 107.7 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.9594, allocations: 169.5 kB / 0.5023 GB, free: 107.7 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004741/0.9642, allocations: 1.424 MB / 0.5037 GB, free: 107.2 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008203/0.9651, allocations: 1.035 MB / 0.5047 GB, free: 106.5 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/0.9659, allocations: 385.7 kB / 0.5051 GB, free: 106.5 MB / 395.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9659, allocations: 1.375 kB / 0.5051 GB, free: 106.5 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.019/3.985, allocations: 25.07 MB / 0.5295 GB, free: 102.8 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat