Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.0009763/0.0009763, allocations: 179.1 kB / 8.697 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.536/1.536, allocations: 205.3 MB / 214.4 MB, free: 1.672 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.0008458/0.0008458, allocations: 86.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.863e-05/1.857e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.09211, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3339/0.426, allocations: 97.81 MB / 461 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4263, allocations: 85.61 kB / 461.1 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06975/0.4961, allocations: 27.21 MB / 488.3 MB, free: 7.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4961, allocations: 0 / 488.3 MB, free: 7.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.501e-05/0.4962, allocations: 24 kB / 488.3 MB, free: 7.902 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001791/0.498, allocations: 1.154 MB / 489.5 MB, free: 6.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4981, allocations: 8.031 kB / 489.5 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005965/0.4987, allocations: 190.9 kB / 489.7 MB, free: 6.578 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.5001, allocations: 0.8473 MB / 490.5 MB, free: 5.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.5002, allocations: 32 kB / 490.5 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.5003, allocations: 63.12 kB / 490.6 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009515/0.5013, allocations: 0.5312 MB / 491.1 MB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.5026, allocations: 0.7663 MB / 491.9 MB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.5026, allocations: 3.906 kB / 491.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.159e-05/0.5027, allocations: 4 kB / 491.9 MB, free: 4.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.5027, allocations: 24 kB / 491.9 MB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/0.5077, allocations: 3.976 MB / 495.9 MB, free: 416 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006879/0.5085, allocations: 336.1 kB / 496.2 MB, free: 72 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.5087, allocations: 136.8 kB / 496.4 MB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.5087, allocations: 4 kB / 496.4 MB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.5087, allocations: 38.56 kB / 496.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.355e-06/0.5087, allocations: 0 / 496.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001524/0.5103, allocations: 0.9822 MB / 497.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.5103, allocations: 81.11 kB / 497.5 MB, free: 14.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008049/0.5111, allocations: 0.6413 MB / 498.1 MB, free: 14.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.5112, allocations: 25.7 kB / 498.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/0.5116, allocations: 0.599 MB / 498.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.5117, allocations: 145.9 kB / 498.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.5117, allocations: 3.938 kB / 498.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.5119, allocations: 334 kB / 499.2 MB, free: 12.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.5121, allocations: 129.6 kB / 499.3 MB, free: 12.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.5125, allocations: 442.3 kB / 499.8 MB, free: 12.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.5128, allocations: 207.8 kB / 500 MB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.5128, allocations: 4 kB / 500 MB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009381/0.5138, allocations: 0.6222 MB / 0.4889 GB, free: 11.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001785/0.5156, allocations: 4.089 MB / 0.4929 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.5156, allocations: 12 kB / 0.4929 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001528/0.5157, allocations: 36.84 kB / 0.4929 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.5163, allocations: 167.7 kB / 0.4931 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.5174, allocations: 1.237 MB / 0.4943 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.5179, allocations: 27.88 kB / 0.4943 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.5179, allocations: 36 kB / 0.4943 GB, free: 5.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-06/0.5179, allocations: 8.156 kB / 0.4943 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007828/0.5187, allocations: 0.4974 MB / 0.4948 GB, free: 4.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.5187, allocations: 12.03 kB / 0.4948 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.635e-05/0.5188, allocations: 32.86 kB / 0.4949 GB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005212/0.5193, allocations: 175.7 kB / 0.495 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007996/0.5202, allocations: 1.24 MB / 0.4962 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.5206, allocations: 12 kB / 0.4963 GB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.5206, allocations: 36 kB / 0.4963 GB, free: 3.266 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001225/0.5208, allocations: 128.7 kB / 0.4964 GB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000532/0.5213, allocations: 365.5 kB / 0.4968 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.875e-05/0.5214, allocations: 82.97 kB / 0.4968 GB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006223/0.522, allocations: 355 kB / 0.4972 GB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.5221, allocations: 4 kB / 0.4972 GB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.5221, allocations: 0 / 0.4972 GB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5221, allocations: 3.984 kB / 0.4972 GB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.5237, allocations: 1.145 MB / 0.4983 GB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.5237, allocations: 7.953 kB / 0.4983 GB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.5241, allocations: 80.11 kB / 0.4984 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.788e-05/0.5242, allocations: 20.86 kB / 0.4984 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.5242, allocations: 0 / 0.4984 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008229/0.525, allocations: 1.237 MB / 0.4996 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.5251, allocations: 3.938 kB / 0.4996 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008323/0.5259, allocations: 0.7281 MB / 0.5003 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/0.5261, allocations: 188.1 kB / 0.5005 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.457e-05/0.5262, allocations: 4 kB / 0.5005 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.5266, allocations: 11.98 kB / 0.5005 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.5266, allocations: 35.92 kB / 0.5006 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.5267, allocations: 15.94 kB / 0.5006 GB, free: 14.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006186/0.5273, allocations: 483.1 kB / 0.501 GB, free: 14.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5273, allocations: 0 / 0.501 GB, free: 14.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001137/0.5285, allocations: 320 kB / 0.5013 GB, free: 13.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * 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: 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.00156/0.53, allocations: 1.878 MB / 0.5032 GB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.5314, allocations: 0.8827 MB / 0.504 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.5314, allocations: 0 / 0.504 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003114/0.5317, allocations: 254.6 kB / 0.5043 GB, free: 10.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009648/0.5327, allocations: 203.4 kB / 0.5045 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.5354, allocations: 1.446 MB / 0.5059 GB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.536, allocations: 1.049 MB / 0.5069 GB, free: 7.867 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007277/0.5368, allocations: 151 kB / 0.5071 GB, free: 7.715 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004415/0.5372, allocations: 383.3 kB / 0.5074 GB, free: 7.34 MB / 394.7 MB Notification: Performance of SimCode: time 5.52e-07/0.5372, allocations: 0 / 0.5074 GB, free: 7.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04349/0.5807, allocations: 17.91 MB / 0.5249 GB, free: 5.406 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/0.581, allocations: 163.5 kB / 0.5251 GB, free: 5.215 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/2.997, allocations: 0 / 0.5251 GB, free: 5.215 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat