Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.002381/0.002387, allocations: 181.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001796/0.001795, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.559e-05, allocations: 8 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5506/0.6597, allocations: 93.76 MB / 463 MB, free: 15.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003132/0.6601, allocations: 82.95 kB / 463 MB, free: 15.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1036/0.7637, allocations: 23.95 MB / 487 MB, free: 9.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.7638, allocations: 0 / 487 MB, free: 9.074 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.859e-05/0.7639, allocations: 16 kB / 487 MB, free: 9.059 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002573/0.7665, allocations: 1.014 MB / 488 MB, free: 7.996 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.7666, allocations: 8.031 kB / 488 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002738/0.7668, allocations: 139.2 kB / 488.2 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007981/0.7677, allocations: 150.6 kB / 488.3 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/0.7696, allocations: 0.6795 MB / 489 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.7697, allocations: 58 kB / 489 MB, free: 6.914 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/0.7699, allocations: 84 kB / 489.1 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.772, allocations: 0.7834 MB / 489.9 MB, free: 6.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.938e-05/0.7721, allocations: 7.906 kB / 489.9 MB, free: 6.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/0.7723, allocations: 32 kB / 489.9 MB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/0.7723, allocations: 20 kB / 490 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.7738, allocations: 0.492 MB / 490.5 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007436/0.7813, allocations: 3.663 MB / 494.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006966/0.782, allocations: 220 kB / 494.3 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000279/0.7823, allocations: 102.2 kB / 494.4 MB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.7824, allocations: 0 / 494.4 MB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.7824, allocations: 34.56 kB / 494.5 MB, free: 1.188 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 2.094e-06/0.7825, allocations: 0 / 494.5 MB, free: 1.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.002279/0.7847, allocations: 0.8552 MB / 495.3 MB, free: 280 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.7848, allocations: 77.11 kB / 495.4 MB, free: 184 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.7864, allocations: 0.6841 MB / 496.1 MB, free: 15.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.502e-05/0.7864, allocations: 29.7 kB / 496.1 MB, free: 15.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005075/0.787, allocations: 0.5085 MB / 496.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.7871, allocations: 106.5 kB / 496.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.7872, allocations: 16 kB / 496.7 MB, free: 14.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.7874, allocations: 330.8 kB / 497.1 MB, free: 14.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.7877, allocations: 109.6 kB / 497.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/0.7884, allocations: 411.2 kB / 497.6 MB, free: 13.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004928/0.7889, allocations: 176.1 kB / 497.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.7889, allocations: 15.88 kB / 497.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001405/0.7903, allocations: 0.5374 MB / 498.3 MB, free: 13.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.7904, allocations: 8.156 kB / 498.3 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.7904, allocations: 16 kB / 498.3 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000229/0.7906, allocations: 32.84 kB / 498.3 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.7919, allocations: 147.8 kB / 498.5 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.7934, allocations: 1.28 MB / 499.8 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.7945, allocations: 48.02 kB / 499.8 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/0.7946, allocations: 32 kB / 499.8 MB, free: 11.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002052/0.7948, allocations: 149.5 kB / 500 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.795, allocations: 79.06 kB / 0.4884 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00091/0.7959, allocations: 306.8 kB / 0.4886 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.7959, allocations: 4 kB / 0.4886 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.7959, allocations: 0 / 0.4886 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.796, allocations: 7.984 kB / 0.4887 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.7985, allocations: 1.07 MB / 0.4897 GB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.7985, allocations: 3.953 kB / 0.4897 GB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/0.7991, allocations: 67.91 kB / 0.4898 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001463/0.7993, allocations: 24.84 kB / 0.4898 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.7993, allocations: 8 kB / 0.4898 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/0.8008, allocations: 1.276 MB / 0.491 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.8008, allocations: 0 / 0.491 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.8022, allocations: 0.6216 MB / 0.4917 GB, free: 7.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004226/0.8026, allocations: 180.2 kB / 0.4918 GB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.8028, allocations: 8 kB / 0.4918 GB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.8034, allocations: 27.98 kB / 0.4919 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.8036, allocations: 31.86 kB / 0.4919 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.8036, allocations: 7.984 kB / 0.4919 GB, free: 7.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.8048, allocations: 0.5187 MB / 0.4924 GB, free: 6.691 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8048, allocations: 0 / 0.4924 GB, free: 6.691 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001233/0.8061, allocations: 203.9 kB / 0.4926 GB, free: 6.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002408/0.8085, allocations: 1.85 MB / 0.4944 GB, free: 4.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.8098, allocations: 435.9 kB / 0.4948 GB, free: 4.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.8098, allocations: 0.875 kB / 0.4948 GB, free: 4.133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004996/0.8103, allocations: 234.3 kB / 0.495 GB, free: 3.891 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/0.8121, allocations: 203.6 kB / 0.4952 GB, free: 3.695 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004538/0.8167, allocations: 1.245 MB / 0.4965 GB, free: 2.379 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.8175, allocations: 0.9686 MB / 0.4974 GB, free: 1.383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006771/0.8182, allocations: 323.3 kB / 0.4977 GB, free: 1.066 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.8182, allocations: 0 / 0.4977 GB, free: 1.066 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.054/3.872, allocations: 18.7 MB / 0.516 GB, free: 14.34 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat