Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_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.001497/0.001496, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.00115/0.001149, allocations: 96.36 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005262/0.0005265, allocations: 16 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3413, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1588/0.5002, allocations: 97.54 MB / 472.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000346/0.5006, allocations: 87.94 kB / 472.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1204/0.621, allocations: 28.17 MB / 0.4887 GB, free: 2.645 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.6211, allocations: 0 / 0.4887 GB, free: 2.645 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.258e-05/0.6212, allocations: 24 kB / 0.4887 GB, free: 2.621 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003787/0.625, allocations: 1.254 MB / 0.49 GB, free: 1.316 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.625, allocations: 8.031 kB / 0.49 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004515/0.6255, allocations: 148.6 kB / 0.4901 GB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.6266, allocations: 186.4 kB / 0.4903 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/0.629, allocations: 0.804 MB / 0.4911 GB, free: 128 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.263e-05/0.6291, allocations: 74 kB / 0.4911 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2732/0.9023, allocations: 94.67 kB / 0.4912 GB, free: 97.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003054/0.9054, allocations: 0.9305 MB / 0.4921 GB, free: 96.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-05/0.9055, allocations: 4.469 kB / 0.4921 GB, free: 96.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.9057, allocations: 45.72 kB / 0.4922 GB, free: 96.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.792e-05/0.9057, allocations: 26.34 kB / 0.4922 GB, free: 96.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.9077, allocations: 0.6406 MB / 0.4928 GB, free: 96.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007576/0.9153, allocations: 3.906 MB / 0.4967 GB, free: 95.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.9164, allocations: 458.6 kB / 0.4971 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.289e-05/0.9165, allocations: 7.016 kB / 0.4971 GB, free: 95.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.9165, allocations: 42.48 kB / 0.4971 GB, free: 95.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.535e-06/0.9165, allocations: 0 / 0.4971 GB, free: 95.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.004316/0.9208, allocations: 1.449 MB / 0.4986 GB, free: 94.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.9209, allocations: 86.34 kB / 0.4986 GB, free: 94.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.9223, allocations: 0.6946 MB / 0.4993 GB, free: 94.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/0.9224, allocations: 33.42 kB / 0.4993 GB, free: 94.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.9228, allocations: 0.5707 MB / 0.4999 GB, free: 94.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.923, allocations: 172 kB / 0.5001 GB, free: 94.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.923, allocations: 15.5 kB / 0.5001 GB, free: 94.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.9231, allocations: 338.8 kB / 0.5004 GB, free: 93.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.9237, allocations: 169.5 kB / 0.5006 GB, free: 93.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/0.9244, allocations: 464.4 kB / 0.501 GB, free: 93.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007225/0.9251, allocations: 249.5 kB / 0.5012 GB, free: 93.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.9252, allocations: 2.219 kB / 0.5012 GB, free: 93.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001923/0.9271, allocations: 0.7195 MB / 0.502 GB, free: 93.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.9271, allocations: 13.09 kB / 0.502 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.9272, allocations: 12.17 kB / 0.502 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004004/0.9276, allocations: 84.66 kB / 0.5021 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009542/0.9285, allocations: 159.3 kB / 0.5022 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.9312, allocations: 2.941 MB / 0.5051 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.9323, allocations: 39.81 kB / 0.5051 GB, free: 90.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.119e-05/0.9324, allocations: 37.16 kB / 0.5052 GB, free: 90.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006567/0.9331, allocations: 258.9 kB / 0.5054 GB, free: 90.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.9333, allocations: 89.47 kB / 0.5055 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.9346, allocations: 0.5016 MB / 0.506 GB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.9347, allocations: 3.688 kB / 0.506 GB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.9347, allocations: 3.891 kB / 0.506 GB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.9347, allocations: 7.578 kB / 0.506 GB, free: 90.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003127/0.9378, allocations: 1.434 MB / 0.5074 GB, free: 89.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.9379, allocations: 2.156 kB / 0.5074 GB, free: 89.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005798/0.9385, allocations: 73.77 kB / 0.5075 GB, free: 89.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003194/0.9388, allocations: 80.67 kB / 0.5075 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.9389, allocations: 15.62 kB / 0.5076 GB, free: 89.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.9413, allocations: 2.907 MB / 0.5104 GB, free: 86.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.9414, allocations: 3.938 kB / 0.5104 GB, free: 86.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.9433, allocations: 0.8867 MB / 0.5113 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000441/0.9438, allocations: 193.4 kB / 0.5114 GB, free: 86.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001611/0.944, allocations: 11.97 kB / 0.5115 GB, free: 86.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006846/0.9447, allocations: 39.06 kB / 0.5115 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.9448, allocations: 34.19 kB / 0.5115 GB, free: 86.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/0.9448, allocations: 15.81 kB / 0.5115 GB, free: 86.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009536/0.9458, allocations: 0.5324 MB / 0.5121 GB, free: 85.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9458, allocations: 0 / 0.5121 GB, free: 85.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001417/0.9473, allocations: 242.1 kB / 0.5123 GB, free: 85.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002643/0.9499, allocations: 2.108 MB / 0.5144 GB, free: 84.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.9517, allocations: 0.7065 MB / 0.515 GB, free: 83.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.9517, allocations: 3.562 kB / 0.515 GB, free: 83.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009686/0.9527, allocations: 467.3 kB / 0.5155 GB, free: 83.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.9545, allocations: 205.8 kB / 0.5157 GB, free: 83.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.9677, allocations: 11.54 MB / 0.527 GB, free: 73.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.9683, allocations: 1.024 MB / 0.528 GB, free: 73.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000709/0.969, allocations: 384.4 kB / 0.5283 GB, free: 72.98 MB / 378.7 MB Notification: Performance of SimCode: time 1.774e-06/0.969, allocations: 0 / 0.5283 GB, free: 72.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.868/3.837, allocations: 25.49 MB / 0.5532 GB, free: 57.01 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start_res.mat does not exist to compare? outputFormat=mat