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.002236/0.002236, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 80.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.97e-05/1.968e-05, allocations: 4 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3374, allocations: 47.54 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.4927, allocations: 96.78 MB / 459.2 MB, free: 5.383 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.4931, allocations: 89.27 kB / 459.3 MB, free: 5.297 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1298/0.623, allocations: 27.8 MB / 487.1 MB, free: 9.43 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.623, allocations: 0 / 487.1 MB, free: 9.43 MB / 379.1 MB Notification: Performance of Transformations before backend: time 9.819e-05/0.6231, allocations: 24.66 kB / 487.1 MB, free: 9.406 MB / 379.1 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.003213/0.6264, allocations: 1.121 MB / 488.3 MB, free: 8.238 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.6264, allocations: 8.031 kB / 488.3 MB, free: 8.23 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.6276, allocations: 182.4 kB / 488.4 MB, free: 8.051 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002672/0.6303, allocations: 0.7925 MB / 489.2 MB, free: 7.215 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/0.6304, allocations: 28 kB / 489.3 MB, free: 7.188 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/0.6307, allocations: 67.86 kB / 489.3 MB, free: 7.121 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001789/0.6325, allocations: 0.5312 MB / 489.9 MB, free: 6.59 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002188/0.6347, allocations: 0.7552 MB / 490.6 MB, free: 5.809 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.847e-05/0.6348, allocations: 0 / 490.6 MB, free: 5.809 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.6349, allocations: 7.984 kB / 490.6 MB, free: 5.801 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.008e-05/0.635, allocations: 24 kB / 490.6 MB, free: 5.777 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008659/0.6436, allocations: 3.727 MB / 494.4 MB, free: 1.844 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009864/0.6447, allocations: 416.1 kB / 494.8 MB, free: 1.41 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007537/0.6455, allocations: 237.4 kB / 495 MB, free: 1.176 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.813e-05/0.6455, allocations: 4 kB / 495 MB, free: 1.172 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.6456, allocations: 42.34 kB / 495.1 MB, free: 1.121 MB / 379.1 MB Notification: Performance of pre-optimization done (n=42): time 3.597e-06/0.6456, allocations: 0 / 495.1 MB, free: 1.121 MB / 379.1 MB Notification: Performance of matching and sorting (n=47): time 0.003297/0.6489, allocations: 1.107 MB / 496.2 MB, free: 15.95 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.649, allocations: 85.55 kB / 496.2 MB, free: 15.85 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001227/0.6503, allocations: 0.574 MB / 496.8 MB, free: 15.27 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 8.556e-05/0.6504, allocations: 29.7 kB / 496.8 MB, free: 15.24 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004985/0.6509, allocations: 0.5783 MB / 497.4 MB, free: 14.65 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.6511, allocations: 161.6 kB / 497.6 MB, free: 14.49 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.6511, allocations: 4 kB / 497.6 MB, free: 14.49 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.6513, allocations: 338.8 kB / 497.9 MB, free: 14.15 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/0.6517, allocations: 141.5 kB / 498.1 MB, free: 14.01 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.6523, allocations: 424.4 kB / 498.5 MB, free: 13.46 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005664/0.6529, allocations: 216.6 kB / 498.7 MB, free: 13.25 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.6529, allocations: 0 / 498.7 MB, free: 13.25 MB / 395.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001745/0.6547, allocations: 0.6108 MB / 499.3 MB, free: 12.63 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.6548, allocations: 12.41 kB / 499.3 MB, free: 12.62 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.6548, allocations: 12 kB / 499.3 MB, free: 12.61 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004548/0.6553, allocations: 93.67 kB / 499.4 MB, free: 12.51 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009915/0.6563, allocations: 159.7 kB / 499.6 MB, free: 12.35 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.6597, allocations: 2.875 MB / 0.4907 GB, free: 9.242 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.6608, allocations: 24.05 kB / 0.4907 GB, free: 9.219 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.6609, allocations: 39.95 kB / 0.4907 GB, free: 9.18 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.6612, allocations: 124.7 kB / 0.4908 GB, free: 9.051 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001259/0.6624, allocations: 436.7 kB / 0.4913 GB, free: 8.609 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.6626, allocations: 75.06 kB / 0.4913 GB, free: 8.535 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.6639, allocations: 445.7 kB / 0.4918 GB, free: 8.086 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-05/0.664, allocations: 8 kB / 0.4918 GB, free: 8.078 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.664, allocations: 4.062 kB / 0.4918 GB, free: 8.074 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.664, allocations: 7.938 kB / 0.4918 GB, free: 8.066 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003202/0.6672, allocations: 1.252 MB / 0.493 GB, free: 6.742 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.6673, allocations: 0 / 0.493 GB, free: 6.742 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/0.6679, allocations: 84.06 kB / 0.4931 GB, free: 6.66 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003957/0.6683, allocations: 81.61 kB / 0.4932 GB, free: 6.574 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.156e-05/0.6684, allocations: 7.938 kB / 0.4932 GB, free: 6.566 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003269/0.6716, allocations: 2.864 MB / 0.496 GB, free: 3.473 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/0.6717, allocations: 8.062 kB / 0.496 GB, free: 3.465 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.6736, allocations: 0.8087 MB / 0.4968 GB, free: 2.566 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/0.6741, allocations: 188 kB / 0.4969 GB, free: 2.363 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.6742, allocations: 0 / 0.4969 GB, free: 2.363 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007016/0.6749, allocations: 23.98 kB / 0.497 GB, free: 2.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/0.6751, allocations: 47.84 kB / 0.497 GB, free: 2.293 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/0.6751, allocations: 8 kB / 0.497 GB, free: 2.285 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009002/0.6761, allocations: 443.2 kB / 0.4974 GB, free: 1.859 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6761, allocations: 0 / 0.4974 GB, free: 1.859 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001507/0.6776, allocations: 195.9 kB / 0.4976 GB, free: 1.668 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2851/0.9627, allocations: 1.982 MB / 0.4996 GB, free: 109.4 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.9645, allocations: 0.6311 MB / 0.5002 GB, free: 109.2 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.9645, allocations: 3.047 kB / 0.5002 GB, free: 109.2 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.9655, allocations: 411 kB / 0.5006 GB, free: 109 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.9672, allocations: 181.7 kB / 0.5007 GB, free: 109 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.9721, allocations: 1.387 MB / 0.5021 GB, free: 108.5 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008232/0.973, allocations: 1.032 MB / 0.5031 GB, free: 107.8 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007605/0.9738, allocations: 377.8 kB / 0.5035 GB, free: 107.8 MB / 395.1 MB Notification: Performance of SimCode: time 1.443e-06/0.9738, allocations: 1.5 kB / 0.5035 GB, free: 107.8 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.042/4.016, allocations: 24.54 MB / 0.5274 GB, free: 104.3 MB / 395.1 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