Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00119/0.00119, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.2 MB / 245 MB, free: 5.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008199/0.0008198, allocations: 97.78 kB / 297.2 MB, free: 5.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002356, allocations: 8 kB / 358 MB, free: 9.246 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2021, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2986/0.5007, allocations: 112.6 MB / 0.5098 GB, free: 47.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.501, allocations: 87.97 kB / 0.5099 GB, free: 47.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1595/0.6605, allocations: 70.74 MB / 0.579 GB, free: 22.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.6606, allocations: 0 / 0.579 GB, free: 22.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002207/0.6608, allocations: 56.59 kB / 0.579 GB, free: 22.26 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.006057/0.6669, allocations: 2.802 MB / 0.5818 GB, free: 19.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.6669, allocations: 8.031 kB / 0.5818 GB, free: 19.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006993/0.6676, allocations: 366.9 kB / 0.5821 GB, free: 19.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/0.6692, allocations: 487.7 kB / 0.5826 GB, free: 18.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.6725, allocations: 1.884 MB / 0.5844 GB, free: 16.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.513e-05/0.6726, allocations: 193.2 kB / 0.5846 GB, free: 16.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.6728, allocations: 259.9 kB / 0.5849 GB, free: 16.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003466/0.6763, allocations: 2.435 MB / 0.5872 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.538e-05/0.6764, allocations: 19.75 kB / 0.5873 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.6766, allocations: 104 kB / 0.5874 GB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/0.6766, allocations: 68 kB / 0.5874 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002668/0.6793, allocations: 1.662 MB / 0.5891 GB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.6904, allocations: 10.74 MB / 0.5995 GB, free: 436 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.6916, allocations: 1.008 MB / 0.6005 GB, free: 15.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.133e-05/0.6917, allocations: 9 kB / 0.6005 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.6917, allocations: 47.56 kB / 0.6006 GB, free: 15.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=83): time 2.995e-06/0.6917, allocations: 3.938 kB / 0.6006 GB, free: 15.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.005147/0.6969, allocations: 3.036 MB / 0.6035 GB, free: 12.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.697, allocations: 167.2 kB / 0.6037 GB, free: 11.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002397/0.6994, allocations: 1.831 MB / 0.6055 GB, free: 10.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.938e-05/0.6995, allocations: 45.69 kB / 0.6055 GB, free: 10 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009742/0.7004, allocations: 1.466 MB / 0.607 GB, free: 8.516 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.7007, allocations: 347.2 kB / 0.6073 GB, free: 8.172 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.7007, allocations: 39.94 kB / 0.6073 GB, free: 8.133 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.7009, allocations: 373.9 kB / 0.6077 GB, free: 7.762 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006475/0.7016, allocations: 375.8 kB / 0.6081 GB, free: 7.395 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.7027, allocations: 1.252 MB / 0.6093 GB, free: 5.711 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008906/0.7036, allocations: 0.5845 MB / 0.6098 GB, free: 5.129 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.7036, allocations: 8 kB / 0.6099 GB, free: 5.121 MB / 394.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00276/0.7064, allocations: 1.877 MB / 0.6117 GB, free: 3.219 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004327/0.7107, allocations: 12.48 MB / 0.6239 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.763e-05/0.7108, allocations: 32 kB / 0.6239 GB, free: 5.355 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007072/0.7115, allocations: 175.3 kB / 0.6241 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.7127, allocations: 419.3 kB / 0.6245 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00406/0.7168, allocations: 5.581 MB / 0.6299 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.7186, allocations: 103.9 kB / 0.63 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.7187, allocations: 92 kB / 0.6301 GB, free: 14.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.7187, allocations: 6.656 kB / 0.6301 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002389/0.7211, allocations: 1.629 MB / 0.6317 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.777e-05/0.7211, allocations: 32 kB / 0.6317 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.7216, allocations: 167.3 kB / 0.6319 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.7227, allocations: 415.5 kB / 0.6323 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003655/0.7263, allocations: 5.57 MB / 0.6377 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.7282, allocations: 88.09 kB / 0.6378 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.7283, allocations: 96 kB / 0.6379 GB, free: 5.906 MB / 426.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.001567/0.7299, allocations: 0.5784 MB / 0.6385 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005723/0.7305, allocations: 229.2 kB / 0.6387 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.7323, allocations: 0.9576 MB / 0.6396 GB, free: 4.109 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.7324, allocations: 12 kB / 0.6396 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.7324, allocations: 0 / 0.6396 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.7324, allocations: 3.984 kB / 0.6396 GB, free: 4.094 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/0.7374, allocations: 3.124 MB / 0.6427 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.7374, allocations: 8.031 kB / 0.6427 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006054/0.7381, allocations: 163.8 kB / 0.6429 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/0.7385, allocations: 135.4 kB / 0.643 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.615e-05/0.7385, allocations: 23.94 kB / 0.643 GB, free: 500 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003382/0.7419, allocations: 5.395 MB / 0.6483 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.7419, allocations: 7.938 kB / 0.6483 GB, free: 10.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002399/0.7443, allocations: 2.007 MB / 0.6502 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007314/0.7451, allocations: 378.2 kB / 0.6506 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.7453, allocations: 31.98 kB / 0.6506 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008539/0.7462, allocations: 60.09 kB / 0.6507 GB, free: 7.809 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.7463, allocations: 84.3 kB / 0.6508 GB, free: 7.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.103e-05/0.7464, allocations: 28 kB / 0.6508 GB, free: 7.699 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001975/0.7484, allocations: 1.364 MB / 0.6521 GB, free: 6.324 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7484, allocations: 0 / 0.6521 GB, free: 6.324 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003398/0.7518, allocations: 1.008 MB / 0.6531 GB, free: 5.316 MB / 442.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.004407/0.7562, allocations: 4.45 MB / 0.6575 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004007/0.7602, allocations: 2.751 MB / 0.6601 GB, free: 13.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.7602, allocations: 384 / 0.6601 GB, free: 13.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009791/0.7612, allocations: 0.8428 MB / 0.661 GB, free: 12.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/0.7638, allocations: 0.5611 MB / 0.6615 GB, free: 12.36 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2058/0.9696, allocations: 34.51 MB / 0.6952 GB, free: 91.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.9708, allocations: 1.621 MB / 0.6968 GB, free: 90.3 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001578/0.9724, allocations: 338.1 kB / 0.6971 GB, free: 90.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.9735, allocations: 1.061 MB / 0.6982 GB, free: 90.28 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/0.9735, allocations: 0 / 0.6982 GB, free: 90.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06837/1.042, allocations: 51.54 MB / 0.7485 GB, free: 79.76 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/1.042, allocations: 233.1 kB / 0.7487 GB, free: 79.51 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.472/4.514, allocations: 0 / 0.7487 GB, free: 79.51 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat