Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009047, allocations: 88.58 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002541, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 50.39 MB / 401.6 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3637, allocations: 111.7 MB / 0.5013 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.364, allocations: 88.92 kB / 0.5014 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3291/0.6931, allocations: 70.69 MB / 0.5704 GB, free: 44.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6932, allocations: 4 kB / 0.5704 GB, free: 44.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000181/0.6934, allocations: 55.94 kB / 0.5705 GB, free: 44.03 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005653/0.699, allocations: 2.799 MB / 0.5732 GB, free: 41.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.6991, allocations: 8.031 kB / 0.5732 GB, free: 41.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006385/0.6997, allocations: 359 kB / 0.5735 GB, free: 40.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001972/0.7017, allocations: 487.7 kB / 0.574 GB, free: 40.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005087/0.7068, allocations: 1.887 MB / 0.5759 GB, free: 38.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.707, allocations: 193.2 kB / 0.576 GB, free: 38.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004578/0.7075, allocations: 263.9 kB / 0.5763 GB, free: 37.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005257/0.7128, allocations: 2.435 MB / 0.5787 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.243e-05/0.7129, allocations: 11.89 kB / 0.5787 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002817/0.7132, allocations: 111.9 kB / 0.5788 GB, free: 35.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-05/0.7132, allocations: 64 kB / 0.5788 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003887/0.7171, allocations: 1.654 MB / 0.5805 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/0.7298, allocations: 10.74 MB / 0.591 GB, free: 22.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.731, allocations: 1 MB / 0.5919 GB, free: 21.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.151e-05/0.7311, allocations: 9 kB / 0.5919 GB, free: 21.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.7311, allocations: 43.56 kB / 0.592 GB, free: 21.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 3.297e-06/0.7311, allocations: 0 / 0.592 GB, free: 21.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=92): time 0.005173/0.7363, allocations: 3.028 MB / 0.5949 GB, free: 17.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.7364, allocations: 167.2 kB / 0.5951 GB, free: 17.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002335/0.7387, allocations: 1.839 MB / 0.5969 GB, free: 15.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.351e-05/0.7388, allocations: 41.7 kB / 0.5969 GB, free: 15.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000671/0.7395, allocations: 1.478 MB / 0.5984 GB, free: 14.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.7396, allocations: 335.3 kB / 0.5987 GB, free: 13.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.7397, allocations: 40 kB / 0.5987 GB, free: 13.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.7398, allocations: 377.8 kB / 0.5991 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005658/0.7404, allocations: 375.8 kB / 0.5995 GB, free: 13.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.7414, allocations: 1.256 MB / 0.6007 GB, free: 11.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000767/0.7422, allocations: 0.5797 MB / 0.6012 GB, free: 10.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.7422, allocations: 15.98 kB / 0.6013 GB, free: 10.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002608/0.7448, allocations: 1.878 MB / 0.6031 GB, free: 9.016 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003014/0.7478, allocations: 12.47 MB / 0.6153 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-05/0.7479, allocations: 32 kB / 0.6153 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006393/0.7486, allocations: 179.3 kB / 0.6155 GB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.7499, allocations: 423.2 kB / 0.6159 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.7539, allocations: 5.585 MB / 0.6213 GB, free: 4.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.7556, allocations: 95.98 kB / 0.6214 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.7557, allocations: 99.98 kB / 0.6215 GB, free: 4.242 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.7558, allocations: 4 kB / 0.6215 GB, free: 4.238 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002466/0.7582, allocations: 1.612 MB / 0.6231 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/0.7583, allocations: 28 kB / 0.6231 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00046/0.7587, allocations: 184 kB / 0.6233 GB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.7599, allocations: 407.3 kB / 0.6237 GB, free: 2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004008/0.7639, allocations: 5.582 MB / 0.6291 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/0.7657, allocations: 83.89 kB / 0.6292 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.7658, allocations: 99.94 kB / 0.6293 GB, free: 11.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001217/0.7671, allocations: 0.5871 MB / 0.6299 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.7675, allocations: 237.1 kB / 0.6301 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.7692, allocations: 0.9459 MB / 0.631 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.7693, allocations: 8 kB / 0.631 GB, free: 9.898 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.7693, allocations: 8 kB / 0.6311 GB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.7693, allocations: 7.938 kB / 0.6311 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0049/0.7742, allocations: 3.12 MB / 0.6341 GB, free: 6.621 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/0.7742, allocations: 8 kB / 0.6341 GB, free: 6.613 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.7748, allocations: 155.8 kB / 0.6343 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004226/0.7753, allocations: 131.7 kB / 0.6344 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.039e-05/0.7753, allocations: 27.98 kB / 0.6344 GB, free: 6.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003779/0.7791, allocations: 5.403 MB / 0.6397 GB, free: 368 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.7791, allocations: 4 kB / 0.6397 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.7817, allocations: 2.003 MB / 0.6417 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007862/0.7825, allocations: 382.1 kB / 0.642 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/0.7828, allocations: 31.94 kB / 0.642 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008483/0.7836, allocations: 59.97 kB / 0.6421 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.7838, allocations: 72.36 kB / 0.6422 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.571e-05/0.7838, allocations: 36 kB / 0.6422 GB, free: 13.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001985/0.7858, allocations: 1.364 MB / 0.6435 GB, free: 12.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7858, allocations: 0 / 0.6435 GB, free: 12.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003165/0.789, allocations: 1.004 MB / 0.6445 GB, free: 11.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003715/0.7927, allocations: 4.446 MB / 0.6489 GB, free: 6.477 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.7967, allocations: 2.759 MB / 0.6516 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.7967, allocations: 0 / 0.6516 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.7977, allocations: 0.8359 MB / 0.6524 GB, free: 2.738 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0023/0.8001, allocations: 0.5566 MB / 0.6529 GB, free: 2.191 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2056/1.006, allocations: 34.53 MB / 0.6866 GB, free: 95.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009336/1.007, allocations: 1.622 MB / 0.6882 GB, free: 94.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00146/1.008, allocations: 326.1 kB / 0.6885 GB, free: 94.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009576/1.009, allocations: 1.065 MB / 0.6896 GB, free: 94.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/1.009, allocations: 3.828 kB / 0.6896 GB, free: 94.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07267/1.082, allocations: 51.55 MB / 0.7399 GB, free: 77.09 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/1.082, allocations: 231.3 kB / 0.7401 GB, free: 76.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.613/4.695, allocations: 0 / 0.7401 GB, free: 76.85 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat