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.002115/0.002115, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001138/0.001138, allocations: 95.55 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005424/0.0005425, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.346, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.163/0.509, allocations: 97.11 MB / 471.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.5094, allocations: 83.95 kB / 471.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1137/0.6232, allocations: 26.26 MB / 498.1 MB, free: 5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.6232, allocations: 0 / 498.1 MB, free: 5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001127/0.6233, allocations: 23.94 kB / 498.1 MB, free: 4.977 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003687/0.627, allocations: 1.238 MB / 499.3 MB, free: 3.688 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.794e-05/0.6271, allocations: 8.031 kB / 499.4 MB, free: 3.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003969/0.6275, allocations: 144.1 kB / 499.5 MB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009134/0.6285, allocations: 178.3 kB / 499.7 MB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002545/0.631, allocations: 0.7692 MB / 0.4887 GB, free: 2.543 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.6312, allocations: 74 kB / 0.4888 GB, free: 2.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002326/0.6314, allocations: 99.94 kB / 0.4889 GB, free: 2.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/0.6342, allocations: 0.9151 MB / 0.4898 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.739e-05/0.6343, allocations: 3.906 kB / 0.4898 GB, free: 1.426 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.6344, allocations: 43.98 kB / 0.4898 GB, free: 1.383 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.224e-05/0.6345, allocations: 28 kB / 0.4898 GB, free: 1.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002269/0.6368, allocations: 0.6286 MB / 0.4905 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2779/0.9147, allocations: 3.95 MB / 0.4943 GB, free: 95.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008743/0.9156, allocations: 355.1 kB / 0.4947 GB, free: 95.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.633e-05/0.9157, allocations: 5.266 kB / 0.4947 GB, free: 95.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.9157, allocations: 34.91 kB / 0.4947 GB, free: 95.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 3.246e-06/0.9157, allocations: 1.375 kB / 0.4947 GB, free: 95.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.003472/0.9192, allocations: 1.234 MB / 0.4959 GB, free: 94.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.9193, allocations: 85.17 kB / 0.496 GB, free: 94.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.9207, allocations: 0.6858 MB / 0.4966 GB, free: 94.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.9207, allocations: 34.27 kB / 0.4967 GB, free: 94.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003755/0.9211, allocations: 0.5817 MB / 0.4973 GB, free: 94.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.9213, allocations: 133.7 kB / 0.4974 GB, free: 94.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.2e-05/0.9213, allocations: 12.66 kB / 0.4974 GB, free: 94.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.9214, allocations: 340.3 kB / 0.4977 GB, free: 93.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005259/0.922, allocations: 153.9 kB / 0.4979 GB, free: 93.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000671/0.9226, allocations: 467.6 kB / 0.4983 GB, free: 93.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006944/0.9234, allocations: 234.5 kB / 0.4985 GB, free: 93.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.9234, allocations: 3.438 kB / 0.4985 GB, free: 93.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001785/0.9252, allocations: 0.6457 MB / 0.4992 GB, free: 93.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.9252, allocations: 8.375 kB / 0.4992 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.9253, allocations: 15.44 kB / 0.4992 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000224/0.9255, allocations: 34.36 kB / 0.4992 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009546/0.9265, allocations: 166.2 kB / 0.4994 GB, free: 93.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.9275, allocations: 1.299 MB / 0.5006 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009529/0.9285, allocations: 38.67 kB / 0.5007 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.9285, allocations: 43.66 kB / 0.5007 GB, free: 92.22 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 () * Number of clocked 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.0006121/0.9292, allocations: 256 kB / 0.501 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.9293, allocations: 79.19 kB / 0.501 GB, free: 92.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.9306, allocations: 400.5 kB / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.9306, allocations: 6.875 kB / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9306, allocations: 4.938 kB / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.9307, allocations: 0 / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002896/0.9336, allocations: 1.265 MB / 0.5027 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.9336, allocations: 2.188 kB / 0.5027 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006396/0.9343, allocations: 77.56 kB / 0.5027 GB, free: 91.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.9344, allocations: 25.17 kB / 0.5028 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.9345, allocations: 7.031 kB / 0.5028 GB, free: 91.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009734/0.9354, allocations: 1.288 MB / 0.504 GB, free: 90.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/0.9355, allocations: 2.125 kB / 0.504 GB, free: 90.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.9373, allocations: 0.7401 MB / 0.5048 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004452/0.9378, allocations: 184.7 kB / 0.5049 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.938, allocations: 19.09 kB / 0.505 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006149/0.9386, allocations: 26.45 kB / 0.505 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.9387, allocations: 26.25 kB / 0.505 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.9388, allocations: 12.59 kB / 0.505 GB, free: 89.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001109/0.9399, allocations: 0.53 MB / 0.5055 GB, free: 89.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9399, allocations: 0 / 0.5055 GB, free: 89.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001352/0.9413, allocations: 222 kB / 0.5057 GB, free: 89.77 MB / 378.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 () * Number of clocked 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.002418/0.9437, allocations: 1.961 MB / 0.5077 GB, free: 88.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.9452, allocations: 0.5293 MB / 0.5082 GB, free: 88.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.9453, allocations: 0 / 0.5082 GB, free: 88.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000602/0.9459, allocations: 272.8 kB / 0.5084 GB, free: 88.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.9475, allocations: 201.4 kB / 0.5086 GB, free: 88.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.96, allocations: 11.85 MB / 0.5202 GB, free: 78.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005418/0.9606, allocations: 1.014 MB / 0.5212 GB, free: 77.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.9613, allocations: 373.6 kB / 0.5216 GB, free: 77.69 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.9613, allocations: 4 kB / 0.5216 GB, free: 77.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.841/3.802, allocations: 20.62 MB / 0.5417 GB, free: 69.11 MB / 378.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