Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001203/0.001204, allocations: 177.7 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.489/1.489, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0008486/0.0008486, allocations: 82.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.046e-05/2.039e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08446, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3098/0.3944, allocations: 97.79 MB / 461 MB, free: 13.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.3947, allocations: 82.62 kB / 461 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07495/0.4697, allocations: 28.3 MB / 489.3 MB, free: 6.734 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4697, allocations: 4.656 kB / 489.4 MB, free: 6.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.527e-05/0.4698, allocations: 23.98 kB / 489.4 MB, free: 6.707 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002177/0.472, allocations: 1.137 MB / 490.5 MB, free: 5.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.4721, allocations: 12.03 kB / 490.5 MB, free: 5.578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000711/0.4728, allocations: 193.6 kB / 490.7 MB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.4743, allocations: 0.809 MB / 491.5 MB, free: 4.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.4744, allocations: 32 kB / 491.6 MB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.4745, allocations: 59.95 kB / 491.6 MB, free: 4.625 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009881/0.4755, allocations: 0.5344 MB / 492.1 MB, free: 4.309 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.4769, allocations: 0.7591 MB / 492.9 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.477, allocations: 11.89 kB / 492.9 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.836e-05/0.477, allocations: 0 / 492.9 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.642e-05/0.4771, allocations: 32 kB / 492.9 MB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005634/0.4827, allocations: 3.752 MB / 496.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/0.4834, allocations: 416.5 kB / 497.1 MB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.4839, allocations: 249.4 kB / 497.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/0.4839, allocations: 4 kB / 497.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.178e-05/0.484, allocations: 38.5 kB / 497.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.817e-06/0.484, allocations: 0 / 497.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002298/0.4863, allocations: 1.128 MB / 498.5 MB, free: 13.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.4864, allocations: 81.55 kB / 498.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000845/0.4872, allocations: 0.5938 MB / 499.2 MB, free: 12.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.4873, allocations: 25.7 kB / 499.2 MB, free: 12.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.4877, allocations: 0.5719 MB / 499.8 MB, free: 12.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.4878, allocations: 165.6 kB / 500 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.4879, allocations: 0 / 500 MB, free: 12.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002443/0.4881, allocations: 398.7 kB / 0.4886 GB, free: 11.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.4884, allocations: 137.6 kB / 0.4887 GB, free: 11.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.4888, allocations: 428.4 kB / 0.4892 GB, free: 11.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.4892, allocations: 224.6 kB / 0.4894 GB, free: 10.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4892, allocations: 0 / 0.4894 GB, free: 10.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00113/0.4903, allocations: 0.6727 MB / 0.49 GB, free: 10.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.4903, allocations: 8 kB / 0.49 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.4904, allocations: 12.34 kB / 0.49 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.4907, allocations: 101.7 kB / 0.4901 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/0.4912, allocations: 159.7 kB / 0.4903 GB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.4936, allocations: 2.887 MB / 0.4931 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.4942, allocations: 28 kB / 0.4931 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.984e-05/0.4943, allocations: 40 kB / 0.4932 GB, free: 6.664 MB / 378.7 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.0001321/0.4944, allocations: 124.7 kB / 0.4933 GB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007065/0.4951, allocations: 440.7 kB / 0.4937 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.4952, allocations: 82.97 kB / 0.4938 GB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007994/0.496, allocations: 458 kB / 0.4942 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.496, allocations: 4 kB / 0.4942 GB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4961, allocations: 7.953 kB / 0.4942 GB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.4961, allocations: 3.984 kB / 0.4942 GB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.498, allocations: 1.283 MB / 0.4955 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.498, allocations: 4 kB / 0.4955 GB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003381/0.4983, allocations: 84.11 kB / 0.4956 GB, free: 4.086 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002229/0.4986, allocations: 77.67 kB / 0.4957 GB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.4986, allocations: 7.938 kB / 0.4957 GB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.5008, allocations: 2.879 MB / 0.4985 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5008, allocations: 4.062 kB / 0.4985 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.5019, allocations: 0.8211 MB / 0.4993 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.5022, allocations: 196 kB / 0.4995 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.5023, allocations: 4 kB / 0.4995 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.5027, allocations: 19.98 kB / 0.4995 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.83e-05/0.5028, allocations: 51.83 kB / 0.4995 GB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.5029, allocations: 12 kB / 0.4996 GB, free: 15.67 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006087/0.5035, allocations: 455.2 kB / 0.5 GB, free: 15.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5035, allocations: 4 kB / 0.5 GB, free: 15.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009266/0.5044, allocations: 192 kB / 0.5002 GB, free: 15.04 MB / 394.7 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.001767/0.5062, allocations: 2.006 MB / 0.5021 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.5072, allocations: 0.6371 MB / 0.5028 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5072, allocations: 0 / 0.5028 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005266/0.5078, allocations: 425.2 kB / 0.5032 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009104/0.5087, allocations: 180.6 kB / 0.5033 GB, free: 11.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.5113, allocations: 1.391 MB / 0.5047 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005646/0.5119, allocations: 1.032 MB / 0.5057 GB, free: 9.168 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004477/0.5124, allocations: 102.9 kB / 0.5058 GB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.5128, allocations: 387.3 kB / 0.5062 GB, free: 8.684 MB / 394.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5128, allocations: 0 / 0.5062 GB, free: 8.684 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04172/0.5545, allocations: 16.63 MB / 0.5224 GB, free: 8.035 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.5548, allocations: 160.1 kB / 0.5226 GB, free: 7.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/2.938, allocations: 4.031 kB / 0.5226 GB, free: 7.836 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat