Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.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.DCEE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",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.002354/0.002354, allocations: 180.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.061/2.061, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001094, allocations: 98.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.48e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4745/0.582, allocations: 97.02 MB / 466.2 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.5824, allocations: 81.95 kB / 466.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1146/0.697, allocations: 26.26 MB / 492.6 MB, free: 3.594 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.6971, allocations: 0 / 492.6 MB, free: 3.594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.742e-05/0.6972, allocations: 23.94 kB / 492.6 MB, free: 3.57 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003064/0.7002, allocations: 1.095 MB / 493.7 MB, free: 2.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.7003, allocations: 19.95 kB / 493.7 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003969/0.7007, allocations: 144.1 kB / 493.8 MB, free: 2.262 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009614/0.7017, allocations: 174.4 kB / 494 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.7041, allocations: 0.7697 MB / 494.8 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.89e-05/0.7043, allocations: 74 kB / 494.8 MB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.7045, allocations: 95.98 kB / 494.9 MB, free: 1.109 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002509/0.7071, allocations: 0.8763 MB / 495.8 MB, free: 208 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.347e-05/0.7072, allocations: 7.906 kB / 495.8 MB, free: 200 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.7073, allocations: 40 kB / 495.9 MB, free: 160 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.016e-05/0.7073, allocations: 31.94 kB / 495.9 MB, free: 128 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.7092, allocations: 0.5742 MB / 496.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008812/0.7181, allocations: 3.937 MB / 0.4887 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007718/0.7189, allocations: 321.2 kB / 0.489 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003386/0.7192, allocations: 129.4 kB / 0.4891 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.7193, allocations: 4.281 kB / 0.4891 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.7194, allocations: 46.83 kB / 0.4892 GB, free: 10.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.745e-06/0.7194, allocations: 0 / 0.4892 GB, free: 10.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002661/0.722, allocations: 0.9421 MB / 0.4901 GB, free: 9.836 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.7222, allocations: 89.03 kB / 0.4902 GB, free: 9.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.7237, allocations: 0.6841 MB / 0.4908 GB, free: 9.043 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.7238, allocations: 29.7 kB / 0.4909 GB, free: 9.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005626/0.7244, allocations: 0.5782 MB / 0.4914 GB, free: 8.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.7246, allocations: 134.1 kB / 0.4915 GB, free: 8.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/0.7246, allocations: 16 kB / 0.4916 GB, free: 8.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.7248, allocations: 334.8 kB / 0.4919 GB, free: 7.938 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.7252, allocations: 125.6 kB / 0.492 GB, free: 7.816 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006541/0.7259, allocations: 433.8 kB / 0.4924 GB, free: 7.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005443/0.7264, allocations: 204.2 kB / 0.4926 GB, free: 7.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.7265, allocations: 4 kB / 0.4926 GB, free: 7.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001543/0.728, allocations: 0.5987 MB / 0.4932 GB, free: 6.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.7281, allocations: 8.875 kB / 0.4932 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.7281, allocations: 12 kB / 0.4932 GB, free: 6.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.7283, allocations: 40.84 kB / 0.4933 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.7294, allocations: 163.7 kB / 0.4934 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.7308, allocations: 1.288 MB / 0.4947 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.7319, allocations: 39.98 kB / 0.4947 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.732, allocations: 32 kB / 0.4947 GB, free: 4.719 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 84 * 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.0002032/0.7322, allocations: 156.8 kB / 0.4949 GB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.7324, allocations: 90.92 kB / 0.495 GB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.7334, allocations: 342.7 kB / 0.4953 GB, free: 4.125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.7334, allocations: 4 kB / 0.4953 GB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.7335, allocations: 4 kB / 0.4953 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.7335, allocations: 0 / 0.4953 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.7363, allocations: 1.215 MB / 0.4965 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.7363, allocations: 0 / 0.4965 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007033/0.7371, allocations: 80.11 kB / 0.4966 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.7372, allocations: 20.86 kB / 0.4966 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.7373, allocations: 11.95 kB / 0.4966 GB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.7386, allocations: 1.272 MB / 0.4978 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.7386, allocations: 8.016 kB / 0.4979 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.74, allocations: 0.6702 MB / 0.4985 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004297/0.7405, allocations: 188.1 kB / 0.4987 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/0.7407, allocations: 12 kB / 0.4987 GB, free: 328 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006711/0.7414, allocations: 23.98 kB / 0.4987 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.7415, allocations: 31.91 kB / 0.4988 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.7415, allocations: 15.95 kB / 0.4988 GB, free: 256 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001178/0.7427, allocations: 0.5226 MB / 0.4993 GB, free: 15.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.7427, allocations: 0 / 0.4993 GB, free: 15.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00125/0.744, allocations: 219.9 kB / 0.4995 GB, free: 15.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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.002451/0.7465, allocations: 1.903 MB / 0.5013 GB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.7478, allocations: 473.4 kB / 0.5018 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.7478, allocations: 4.125 kB / 0.5018 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.7483, allocations: 246.4 kB / 0.502 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.7501, allocations: 192.4 kB / 0.5022 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004589/0.7547, allocations: 1.446 MB / 0.5036 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000832/0.7556, allocations: 1.016 MB / 0.5046 GB, free: 10.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007653/0.7563, allocations: 371.3 kB / 0.505 GB, free: 9.703 MB / 394.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7564, allocations: 0 / 0.505 GB, free: 9.703 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.864/3.621, allocations: 20.5 MB / 0.525 GB, free: 5.168 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat