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.0012/0.0012, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.0009319/0.0009321, allocations: 93.83 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.998e-05/2.001e-05, allocations: 7.938 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3807/0.4834, allocations: 111 MB / 498.6 MB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.4838, allocations: 79.95 kB / 498.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4523/0.9361, allocations: 69.69 MB / 0.555 GB, free: 97.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.9361, allocations: 0 / 0.555 GB, free: 97.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002047/0.9363, allocations: 62.5 kB / 0.5551 GB, free: 97.7 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.006435/0.9428, allocations: 2.415 MB / 0.5574 GB, free: 96.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.9429, allocations: 12.12 kB / 0.5575 GB, free: 96.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001986/0.9448, allocations: 485 kB / 0.5579 GB, free: 96.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004228/0.9491, allocations: 1.877 MB / 0.5598 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.9492, allocations: 84.56 kB / 0.5598 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003367/0.9496, allocations: 160.3 kB / 0.56 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003097/0.9527, allocations: 1.382 MB / 0.5613 GB, free: 95.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/0.9569, allocations: 1.99 MB / 0.5633 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-05/0.9569, allocations: 12.7 kB / 0.5633 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.9571, allocations: 3.281 kB / 0.5633 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.66e-05/0.9572, allocations: 67.06 kB / 0.5634 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01395/0.9712, allocations: 10.25 MB / 0.5734 GB, free: 90.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.9723, allocations: 0.8971 MB / 0.5742 GB, free: 90.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.9728, allocations: 320.1 kB / 0.5745 GB, free: 90.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.704e-05/0.9728, allocations: 10.55 kB / 0.5746 GB, free: 90.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.9729, allocations: 51.39 kB / 0.5746 GB, free: 90.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=83): time 2.635e-06/0.9729, allocations: 0 / 0.5746 GB, free: 90.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.004153/0.977, allocations: 2.057 MB / 0.5766 GB, free: 89.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.179e-05/0.9771, allocations: 169.8 kB / 0.5768 GB, free: 89.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.979, allocations: 1.457 MB / 0.5782 GB, free: 89.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.9791, allocations: 28 kB / 0.5782 GB, free: 89.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007464/0.9799, allocations: 1.485 MB / 0.5797 GB, free: 88.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.98, allocations: 323.5 kB / 0.58 GB, free: 88.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.9801, allocations: 3.188 kB / 0.58 GB, free: 88.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.9802, allocations: 378.5 kB / 0.5803 GB, free: 87.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.9807, allocations: 297.2 kB / 0.5806 GB, free: 87.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000845/0.9815, allocations: 1.162 MB / 0.5818 GB, free: 86.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/0.9822, allocations: 0.5113 MB / 0.5823 GB, free: 86.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.221e-05/0.9822, allocations: 7.719 kB / 0.5823 GB, free: 86.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.002151/0.9843, allocations: 1.541 MB / 0.5838 GB, free: 86.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002203/0.9866, allocations: 12.26 MB / 0.5957 GB, free: 73.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/0.9866, allocations: 34.91 kB / 0.5958 GB, free: 73.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.9871, allocations: 163.9 kB / 0.5959 GB, free: 73.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.9883, allocations: 426.2 kB / 0.5963 GB, free: 73.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.9911, allocations: 5.321 MB / 0.6015 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.9929, allocations: 69.11 kB / 0.6016 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/0.993, allocations: 95.22 kB / 0.6017 GB, free: 68.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.993, allocations: 4.5 kB / 0.6017 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001771/0.9948, allocations: 1.294 MB / 0.603 GB, free: 68.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/0.9949, allocations: 29.97 kB / 0.603 GB, free: 68.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003808/0.9953, allocations: 161.5 kB / 0.6031 GB, free: 68.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.9963, allocations: 417.6 kB / 0.6035 GB, free: 68.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/0.9989, allocations: 5.33 MB / 0.6088 GB, free: 63.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/1.001, allocations: 51.48 kB / 0.6088 GB, free: 63.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/1.001, allocations: 96.22 kB / 0.6089 GB, free: 63.44 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.0003193/1.001, allocations: 177.4 kB / 0.6091 GB, free: 63.28 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001132/1.002, allocations: 0.7785 MB / 0.6098 GB, free: 63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/1.002, allocations: 201.8 kB / 0.61 GB, free: 62.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/1.004, allocations: 0.778 MB / 0.6108 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/1.004, allocations: 10.31 kB / 0.6108 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.004, allocations: 2.438 kB / 0.6108 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/1.004, allocations: 5.906 kB / 0.6108 GB, free: 62.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004407/1.008, allocations: 2.665 MB / 0.6134 GB, free: 61.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.638e-05/1.008, allocations: 5.25 kB / 0.6134 GB, free: 61.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/1.009, allocations: 166.5 kB / 0.6136 GB, free: 61.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004064/1.009, allocations: 126.5 kB / 0.6137 GB, free: 61.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/1.009, allocations: 12.8 kB / 0.6137 GB, free: 61.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002793/1.012, allocations: 5.15 MB / 0.6187 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/1.012, allocations: 11.84 kB / 0.6187 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/1.014, allocations: 1.753 MB / 0.6204 GB, free: 54.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007731/1.015, allocations: 344.7 kB / 0.6208 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/1.015, allocations: 14.28 kB / 0.6208 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008057/1.016, allocations: 46.02 kB / 0.6208 GB, free: 54.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/1.016, allocations: 78.89 kB / 0.6209 GB, free: 54.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/1.016, allocations: 33.03 kB / 0.6209 GB, free: 54.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001398/1.018, allocations: 1.043 MB / 0.622 GB, free: 53.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.018, allocations: 0 / 0.622 GB, free: 53.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003334/1.021, allocations: 0.8504 MB / 0.6228 GB, free: 53.77 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.002532/1.024, allocations: 4.195 MB / 0.6269 GB, free: 50.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003568/1.027, allocations: 2.467 MB / 0.6293 GB, free: 48.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.027, allocations: 2.188 kB / 0.6293 GB, free: 48.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007196/1.028, allocations: 0.7534 MB / 0.63 GB, free: 48.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/1.03, allocations: 489.5 kB / 0.6305 GB, free: 48.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006694/1.037, allocations: 3.411 MB / 0.6338 GB, free: 46.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009773/1.038, allocations: 1.626 MB / 0.6354 GB, free: 45.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00183/1.04, allocations: 372.6 kB / 0.6358 GB, free: 45.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008522/1.041, allocations: 1.024 MB / 0.6368 GB, free: 44.79 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/1.041, allocations: 0 / 0.6368 GB, free: 44.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07539/1.116, allocations: 44.08 MB / 0.6798 GB, free: 18.4 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/1.116, allocations: 175.8 kB / 0.68 GB, free: 18.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.717/4.833, allocations: 0 / 0.68 GB, free: 18.2 MB / 426.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