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.001162/0.001162, allocations: 175.2 kB / 14.1 MB, free: 1.211 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.344/1.344, allocations: 205.2 MB / 219.8 MB, free: 14.28 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.0007575/0.0007575, allocations: 90.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.109e-05, allocations: 4 kB / 322.6 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07431/0.07435, allocations: 47.56 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.3781, allocations: 98.22 MB / 468.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/0.3784, allocations: 83.2 kB / 468.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07355/0.4519, allocations: 28.7 MB / 497.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.452, allocations: 0.6562 kB / 497.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.411e-05/0.452, allocations: 20 kB / 497.1 MB, free: 15.62 MB / 378.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.001734/0.4538, allocations: 1.142 MB / 498.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.4538, allocations: 8.031 kB / 498.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000175/0.454, allocations: 152.2 kB / 498.4 MB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006117/0.4546, allocations: 194.3 kB / 498.6 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.4561, allocations: 0.8126 MB / 499.4 MB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.748e-05/0.4562, allocations: 77.95 kB / 499.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4563, allocations: 99.98 kB / 499.6 MB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.4579, allocations: 0.892 MB / 0.4888 GB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.825e-05/0.4579, allocations: 11.84 kB / 0.4888 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.07e-05/0.458, allocations: 40 kB / 0.4888 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.4581, allocations: 27.98 kB / 0.4888 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.4591, allocations: 0.5936 MB / 0.4894 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005244/0.4643, allocations: 3.939 MB / 0.4933 GB, free: 7.297 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.465, allocations: 440.7 kB / 0.4937 GB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.4655, allocations: 252.8 kB / 0.4939 GB, free: 6.582 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.4655, allocations: 8 kB / 0.4939 GB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.4655, allocations: 39.22 kB / 0.494 GB, free: 6.527 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.174e-06/0.4656, allocations: 0 / 0.494 GB, free: 6.527 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.002095/0.4677, allocations: 1.228 MB / 0.4952 GB, free: 5.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.4677, allocations: 81.55 kB / 0.4953 GB, free: 5.141 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008511/0.4686, allocations: 0.6998 MB / 0.4959 GB, free: 4.438 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.4686, allocations: 33.7 kB / 0.496 GB, free: 4.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003657/0.469, allocations: 0.5759 MB / 0.4965 GB, free: 3.812 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4691, allocations: 165.6 kB / 0.4967 GB, free: 3.648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.4692, allocations: 16 kB / 0.4967 GB, free: 3.633 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4693, allocations: 337.9 kB / 0.497 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.4695, allocations: 157.6 kB / 0.4972 GB, free: 3.145 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004708/0.47, allocations: 450 kB / 0.4976 GB, free: 2.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.4704, allocations: 241.5 kB / 0.4978 GB, free: 2.328 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.4704, allocations: 4 kB / 0.4978 GB, free: 2.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001148/0.4716, allocations: 0.7623 MB / 0.4986 GB, free: 1.551 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4716, allocations: 15.11 kB / 0.4986 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.4716, allocations: 12 kB / 0.4986 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.4719, allocations: 93.91 kB / 0.4987 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/0.4724, allocations: 163.7 kB / 0.4989 GB, free: 1.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.4748, allocations: 3.002 MB / 0.5018 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.4753, allocations: 39.98 kB / 0.5018 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.4754, allocations: 36.06 kB / 0.5019 GB, free: 13.93 MB / 394.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.0001234/0.4755, allocations: 156.7 kB / 0.502 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.4756, allocations: 90.88 kB / 0.5021 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008419/0.4765, allocations: 0.4947 MB / 0.5026 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.4765, allocations: 4 kB / 0.5026 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4765, allocations: 4 kB / 0.5026 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4765, allocations: 3.984 kB / 0.5026 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.4785, allocations: 1.446 MB / 0.504 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4785, allocations: 224 / 0.504 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003408/0.4789, allocations: 87.89 kB / 0.5041 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/0.4791, allocations: 89.59 kB / 0.5042 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.4791, allocations: 15.94 kB / 0.5042 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/0.4814, allocations: 2.974 MB / 0.5071 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4814, allocations: 4.031 kB / 0.5071 GB, free: 8.176 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.4825, allocations: 0.8639 MB / 0.5079 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.4828, allocations: 200 kB / 0.5081 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.848e-05/0.4829, allocations: 16 kB / 0.5081 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004085/0.4833, allocations: 35.98 kB / 0.5082 GB, free: 6.953 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/0.4834, allocations: 35.89 kB / 0.5082 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.4834, allocations: 19.98 kB / 0.5082 GB, free: 6.898 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006393/0.4841, allocations: 0.5265 MB / 0.5087 GB, free: 6.379 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4841, allocations: 0 / 0.5087 GB, free: 6.379 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008091/0.4849, allocations: 248 kB / 0.509 GB, free: 6.137 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.001736/0.4866, allocations: 2.094 MB / 0.511 GB, free: 3.965 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009567/0.4876, allocations: 0.6843 MB / 0.5117 GB, free: 3.254 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4876, allocations: 0 / 0.5117 GB, free: 3.254 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.4882, allocations: 457.5 kB / 0.5121 GB, free: 2.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008577/0.489, allocations: 211.1 kB / 0.5123 GB, free: 2.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.4915, allocations: 1.437 MB / 0.5137 GB, free: 1.074 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.4921, allocations: 1.04 MB / 0.5148 GB, free: 8 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.4925, allocations: 111.4 kB / 0.5149 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.4929, allocations: 383.3 kB / 0.5152 GB, free: 15.52 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4929, allocations: 0 / 0.5152 GB, free: 15.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2164/0.7093, allocations: 20.95 MB / 0.5357 GB, free: 115 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.7095, allocations: 193.6 kB / 0.5359 GB, free: 114.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.232, allocations: 0 / 0.5359 GB, free: 114.8 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