Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001333/0.001333, allocations: 172.6 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0007765/0.0007766, allocations: 97.84 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.91e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09145/0.0915, allocations: 47.56 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3033/0.3949, allocations: 93.78 MB / 463.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.3952, allocations: 78.67 kB / 464 MB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06584/0.461, allocations: 23.94 MB / 487.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.486e-06/0.4611, allocations: 3.984 kB / 487.9 MB, free: 8.867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.495e-05/0.4611, allocations: 20 kB / 487.9 MB, free: 8.848 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.001605/0.4627, allocations: 1.014 MB / 488.9 MB, free: 7.785 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4628, allocations: 8.031 kB / 489 MB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/0.463, allocations: 143.2 kB / 489.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005062/0.4635, allocations: 154.5 kB / 489.2 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.4649, allocations: 0.6718 MB / 489.9 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/0.4649, allocations: 62 kB / 490 MB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.4651, allocations: 87.98 kB / 490.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.4665, allocations: 0.7795 MB / 490.8 MB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.4666, allocations: 3.906 kB / 490.8 MB, free: 5.801 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.4667, allocations: 32 kB / 490.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.4667, allocations: 24 kB / 490.9 MB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008521/0.4675, allocations: 0.4959 MB / 491.4 MB, free: 5.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004886/0.4724, allocations: 3.651 MB / 495 MB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.4729, allocations: 220 kB / 495.3 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.4731, allocations: 98.17 kB / 495.4 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.4732, allocations: 4 kB / 495.4 MB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.4732, allocations: 38.56 kB / 495.4 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 3.386e-06/0.4732, allocations: 0 / 495.4 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001519/0.4747, allocations: 0.8474 MB / 496.2 MB, free: 72 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.4748, allocations: 81.11 kB / 496.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008904/0.4757, allocations: 0.684 MB / 497 MB, free: 15.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.4757, allocations: 29.7 kB / 497 MB, free: 15.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/0.4761, allocations: 0.4983 MB / 497.5 MB, free: 14.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.4762, allocations: 110.5 kB / 497.6 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.4762, allocations: 12 kB / 497.7 MB, free: 14.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4763, allocations: 326 kB / 498 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.4765, allocations: 113.5 kB / 498.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.4769, allocations: 399.3 kB / 498.5 MB, free: 13.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.4772, allocations: 192 kB / 498.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.4772, allocations: 4 kB / 498.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00087/0.4781, allocations: 0.5912 MB / 499.3 MB, free: 12.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.4781, allocations: 11.44 kB / 499.3 MB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.4782, allocations: 12 kB / 499.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.4783, allocations: 24.86 kB / 499.3 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.4788, allocations: 160.1 kB / 499.5 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009917/0.4798, allocations: 1.28 MB / 0.489 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.4803, allocations: 52.03 kB / 0.4891 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.4804, allocations: 32 kB / 0.4891 GB, free: 11.16 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.0001441/0.4805, allocations: 150.4 kB / 0.4892 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4806, allocations: 82.97 kB / 0.4893 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005681/0.4812, allocations: 306.8 kB / 0.4896 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4812, allocations: 4 kB / 0.4896 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.4813, allocations: 0 / 0.4896 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4813, allocations: 0 / 0.4896 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.4827, allocations: 1.074 MB / 0.4907 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.4828, allocations: 3.953 kB / 0.4907 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002836/0.4831, allocations: 71.89 kB / 0.4907 GB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.639e-05/0.4832, allocations: 25.06 kB / 0.4907 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.4832, allocations: 8 kB / 0.4908 GB, free: 9.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009003/0.4841, allocations: 1.272 MB / 0.492 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4841, allocations: 0 / 0.492 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.4849, allocations: 0.6227 MB / 0.4926 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002593/0.4851, allocations: 180.1 kB / 0.4928 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.4852, allocations: 11.98 kB / 0.4928 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/0.4856, allocations: 23.98 kB / 0.4928 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.287e-05/0.4857, allocations: 27.86 kB / 0.4928 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.4857, allocations: 12 kB / 0.4929 GB, free: 6.961 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006745/0.4864, allocations: 0.5187 MB / 0.4934 GB, free: 6.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4864, allocations: 0 / 0.4934 GB, free: 6.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007315/0.4871, allocations: 207.9 kB / 0.4936 GB, free: 6.238 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.00145/0.4886, allocations: 1.847 MB / 0.4954 GB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007278/0.4893, allocations: 431.9 kB / 0.4958 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4893, allocations: 0 / 0.4958 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002833/0.4896, allocations: 227.8 kB / 0.496 GB, free: 3.652 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.4906, allocations: 211.1 kB / 0.4962 GB, free: 3.449 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.4931, allocations: 1.208 MB / 0.4974 GB, free: 2.176 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.4937, allocations: 0.9687 MB / 0.4983 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004181/0.4941, allocations: 106.7 kB / 0.4984 GB, free: 1.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/0.4945, allocations: 311.3 kB / 0.4987 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of SimCode: time 6.42e-07/0.4945, allocations: 0 / 0.4987 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.5343, allocations: 19.37 MB / 0.5176 GB, free: 13.36 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.5345, allocations: 191.7 kB / 0.5178 GB, free: 13.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/3.133, allocations: 0 / 0.5178 GB, free: 13.13 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat