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.001206/0.001206, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008282/0.0008281, allocations: 82.72 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.726e-05/1.728e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.0801, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3289/0.409, allocations: 93.34 MB / 456.5 MB, free: 2.234 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.4094, allocations: 87.22 kB / 456.6 MB, free: 2.188 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07431/0.4837, allocations: 23.63 MB / 480.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4837, allocations: 0 / 480.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.481e-05/0.4838, allocations: 18.56 kB / 480.3 MB, free: 14.83 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.00167/0.4855, allocations: 1.015 MB / 481.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.4855, allocations: 12.03 kB / 481.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005162/0.4861, allocations: 154.6 kB / 481.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.4872, allocations: 0.6752 MB / 482.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.4872, allocations: 28 kB / 482.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.647e-05/0.4873, allocations: 48 kB / 482.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008037/0.4881, allocations: 444.8 kB / 482.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.4892, allocations: 0.6662 MB / 483.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/0.4892, allocations: 3.906 kB / 483.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.489e-05/0.4893, allocations: 0 / 483.3 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.4893, allocations: 20 kB / 483.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004254/0.4936, allocations: 3.473 MB / 486.8 MB, free: 9.137 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003702/0.494, allocations: 201.6 kB / 487 MB, free: 9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.4941, allocations: 87.92 kB / 487.1 MB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.4942, allocations: 4 kB / 487.1 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.4942, allocations: 41.98 kB / 487.1 MB, free: 8.895 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 3.166e-06/0.4942, allocations: 4 kB / 487.1 MB, free: 8.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001358/0.4956, allocations: 0.7723 MB / 487.9 MB, free: 8.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.4957, allocations: 84.36 kB / 488 MB, free: 8.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.4962, allocations: 0.5115 MB / 488.5 MB, free: 7.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4963, allocations: 29.64 kB / 488.5 MB, free: 7.629 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.4966, allocations: 0.5171 MB / 489 MB, free: 7.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.545e-05/0.4967, allocations: 102.5 kB / 489.1 MB, free: 7.004 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.639e-05/0.4967, allocations: 4 kB / 489.1 MB, free: 7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.4969, allocations: 370.8 kB / 489.5 MB, free: 6.629 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.4971, allocations: 101.5 kB / 489.6 MB, free: 6.527 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003438/0.4974, allocations: 381.7 kB / 490 MB, free: 6.016 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.4977, allocations: 171.7 kB / 490.1 MB, free: 5.848 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4977, allocations: 0 / 490.1 MB, free: 5.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007749/0.4985, allocations: 0.5053 MB / 490.6 MB, free: 5.332 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.4985, allocations: 11.98 kB / 490.6 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4985, allocations: 8 kB / 490.7 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.4987, allocations: 33.52 kB / 490.7 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.4992, allocations: 151.7 kB / 490.8 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009714/0.5001, allocations: 1.241 MB / 492.1 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004422/0.5006, allocations: 31.89 kB / 492.1 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.5006, allocations: 31.98 kB / 492.1 MB, free: 3.711 MB / 362.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.0001207/0.5008, allocations: 132.9 kB / 492.3 MB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003963/0.5012, allocations: 262.2 kB / 492.5 MB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.5013, allocations: 67.14 kB / 492.6 MB, free: 3.242 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.5018, allocations: 269.4 kB / 492.9 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.5018, allocations: 4 kB / 492.9 MB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.5018, allocations: 0 / 492.9 MB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5018, allocations: 0 / 492.9 MB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.5031, allocations: 0.9421 MB / 493.8 MB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5031, allocations: 4.219 kB / 493.8 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.5034, allocations: 67.89 kB / 493.9 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-05/0.5035, allocations: 24.84 kB / 493.9 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.5036, allocations: 4 kB / 493.9 MB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008135/0.5044, allocations: 1.217 MB / 495.1 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.5044, allocations: 7.969 kB / 495.1 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006931/0.5051, allocations: 0.5722 MB / 495.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.5053, allocations: 164.3 kB / 495.9 MB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-05/0.5054, allocations: 11.94 kB / 495.9 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.5057, allocations: 15.98 kB / 495.9 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.5058, allocations: 35.91 kB / 495.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.5058, allocations: 8 kB / 495.9 MB, free: 15.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004828/0.5063, allocations: 391.2 kB / 496.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5063, allocations: 0 / 496.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007394/0.5071, allocations: 156 kB / 496.5 MB, free: 15.07 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.00155/0.5086, allocations: 1.786 MB / 498.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.5094, allocations: 390.2 kB / 498.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5094, allocations: 0 / 498.6 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.5097, allocations: 215.7 kB / 498.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008532/0.5105, allocations: 167.1 kB / 499 MB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.5132, allocations: 1.14 MB / 0.4884 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.5138, allocations: 0.9717 MB / 0.4894 GB, free: 10.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.5142, allocations: 81.44 kB / 0.4894 GB, free: 10.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.5146, allocations: 320 kB / 0.4897 GB, free: 9.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5146, allocations: 0 / 0.4897 GB, free: 9.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03713/0.5517, allocations: 13.6 MB / 0.503 GB, free: 12.21 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.552, allocations: 156.8 kB / 0.5032 GB, free: 12.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.281/2.833, allocations: 7.938 kB / 0.5032 GB, free: 12.02 MB / 394.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