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.000902/0.0009021, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.283/1.283, allocations: 221.3 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008739/0.0008739, allocations: 85.73 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.599e-05, allocations: 8 kB / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.41 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3438/0.4484, allocations: 111.7 MB / 0.4942 GB, free: 7.719 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.4487, allocations: 83.89 kB / 0.4943 GB, free: 7.637 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4252/0.8739, allocations: 70.75 MB / 0.5633 GB, free: 99.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.8739, allocations: 0 / 0.5633 GB, free: 99.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001757/0.8741, allocations: 58.59 kB / 0.5634 GB, free: 99.59 MB / 426.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.005138/0.8792, allocations: 2.423 MB / 0.5658 GB, free: 98.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.8793, allocations: 9.625 kB / 0.5658 GB, free: 98.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004851/0.8798, allocations: 359.5 kB / 0.5661 GB, free: 98.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001731/0.8815, allocations: 482.5 kB / 0.5666 GB, free: 98.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004066/0.8856, allocations: 1.872 MB / 0.5684 GB, free: 97.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.8858, allocations: 192.5 kB / 0.5686 GB, free: 97.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003984/0.8862, allocations: 262.4 kB / 0.5688 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004274/0.8905, allocations: 2.374 MB / 0.5712 GB, free: 97.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-05/0.8906, allocations: 9 kB / 0.5712 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001937/0.8908, allocations: 109.8 kB / 0.5713 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.8908, allocations: 64.38 kB / 0.5713 GB, free: 97.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003059/0.8939, allocations: 1.543 MB / 0.5728 GB, free: 97.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01336/0.9073, allocations: 10.74 MB / 0.5833 GB, free: 91.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009548/0.9082, allocations: 0.9319 MB / 0.5842 GB, free: 91.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.9087, allocations: 346.3 kB / 0.5846 GB, free: 91.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.249e-05/0.9087, allocations: 7.375 kB / 0.5846 GB, free: 91.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.9088, allocations: 46.88 kB / 0.5846 GB, free: 91.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=83): time 2.625e-06/0.9088, allocations: 0 / 0.5846 GB, free: 91.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.003542/0.9123, allocations: 2.25 MB / 0.5868 GB, free: 89.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.9124, allocations: 166.6 kB / 0.587 GB, free: 89.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002163/0.9146, allocations: 1.811 MB / 0.5887 GB, free: 88.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.084e-05/0.9146, allocations: 45.42 kB / 0.5888 GB, free: 88.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006849/0.9153, allocations: 1.468 MB / 0.5902 GB, free: 87.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.9155, allocations: 333.1 kB / 0.5905 GB, free: 87.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.9155, allocations: 35.72 kB / 0.5906 GB, free: 87.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.9156, allocations: 382.1 kB / 0.5909 GB, free: 86.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004725/0.9161, allocations: 328.3 kB / 0.5913 GB, free: 86.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007782/0.9169, allocations: 1.216 MB / 0.5924 GB, free: 85.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.9176, allocations: 0.5474 MB / 0.593 GB, free: 85.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.9176, allocations: 7.844 kB / 0.593 GB, free: 85.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002402/0.92, allocations: 1.796 MB / 0.5947 GB, free: 84.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002523/0.9225, allocations: 12.48 MB / 0.6069 GB, free: 70.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.199e-05/0.9226, allocations: 31.66 kB / 0.607 GB, free: 70.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005952/0.9232, allocations: 177.3 kB / 0.6071 GB, free: 70.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.9243, allocations: 422.1 kB / 0.6075 GB, free: 70.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003017/0.9273, allocations: 5.543 MB / 0.6129 GB, free: 65.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/0.9291, allocations: 96.41 kB / 0.613 GB, free: 65.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.396e-05/0.9292, allocations: 92.97 kB / 0.6131 GB, free: 65.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.9292, allocations: 5.312 kB / 0.6131 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001965/0.9312, allocations: 1.564 MB / 0.6147 GB, free: 64.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.9312, allocations: 31.5 kB / 0.6147 GB, free: 64.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/0.9316, allocations: 164.4 kB / 0.6148 GB, free: 64.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.9327, allocations: 418.4 kB / 0.6152 GB, free: 64.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/0.9353, allocations: 5.539 MB / 0.6206 GB, free: 58.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.937, allocations: 83.27 kB / 0.6207 GB, free: 58.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.019e-05/0.9371, allocations: 94.91 kB / 0.6208 GB, free: 58.91 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 () * 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.0002881/0.9374, allocations: 235.7 kB / 0.621 GB, free: 58.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.9376, allocations: 234.3 kB / 0.6213 GB, free: 58.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.939, allocations: 0.8813 MB / 0.6221 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.939, allocations: 6.875 kB / 0.6221 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.939, allocations: 7.969 kB / 0.6221 GB, free: 58.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.939, allocations: 3.797 kB / 0.6221 GB, free: 58.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.9429, allocations: 3.049 MB / 0.6251 GB, free: 56.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.9429, allocations: 6.844 kB / 0.6251 GB, free: 56.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.9435, allocations: 167.5 kB / 0.6253 GB, free: 56.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003585/0.9439, allocations: 128.3 kB / 0.6254 GB, free: 56.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.527e-05/0.9439, allocations: 25.77 kB / 0.6254 GB, free: 56.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002449/0.9464, allocations: 5.359 MB / 0.6307 GB, free: 51.19 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.9464, allocations: 10.78 kB / 0.6307 GB, free: 51.19 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.9481, allocations: 1.884 MB / 0.6325 GB, free: 49.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/0.9489, allocations: 378.7 kB / 0.6329 GB, free: 49.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002197/0.9491, allocations: 32.66 kB / 0.6329 GB, free: 49.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008257/0.9499, allocations: 54.56 kB / 0.633 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.9501, allocations: 82.55 kB / 0.633 GB, free: 49.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/0.9501, allocations: 31.41 kB / 0.6331 GB, free: 49.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001672/0.9518, allocations: 1.341 MB / 0.6344 GB, free: 48.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9518, allocations: 4 kB / 0.6344 GB, free: 48.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003076/0.9549, allocations: 1.001 MB / 0.6354 GB, free: 48.7 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 () * 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.00254/0.9574, allocations: 4.338 MB / 0.6396 GB, free: 45.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/0.9607, allocations: 2.708 MB / 0.6422 GB, free: 43.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.9607, allocations: 4.688 kB / 0.6422 GB, free: 43.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007376/0.9615, allocations: 0.8004 MB / 0.643 GB, free: 42.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/0.9638, allocations: 0.5498 MB / 0.6436 GB, free: 42.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006036/0.9698, allocations: 3.553 MB / 0.647 GB, free: 41.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009084/0.9707, allocations: 1.628 MB / 0.6486 GB, free: 40.11 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00185/0.9726, allocations: 414.1 kB / 0.649 GB, free: 39.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008192/0.9734, allocations: 1.028 MB / 0.65 GB, free: 38.88 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/0.9734, allocations: 0 / 0.65 GB, free: 38.88 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0885/1.062, allocations: 54.28 MB / 0.703 GB, free: 7.234 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/1.062, allocations: 198.1 kB / 0.7032 GB, free: 7.012 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.847/4.909, allocations: 0 / 0.7032 GB, free: 7.012 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