Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.001032/0.001032, allocations: 176.5 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009021/0.000902, allocations: 101.8 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.394/0.394, allocations: 44.21 MB / 387.5 MB, free: 38.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 8 kB / 460 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.449, allocations: 61.9 MB / 0.5096 GB, free: 37.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.136/0.5851, allocations: 88.77 MB / 0.5963 GB, free: 6.324 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.5853, allocations: 67.94 kB / 0.5964 GB, free: 6.262 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01391/0.5992, allocations: 4.935 MB / 0.6012 GB, free: 1.309 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5993, allocations: 0 / 0.6012 GB, free: 1.309 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.5993, allocations: 4 kB / 0.6012 GB, free: 1.305 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009607/0.6003, allocations: 0.5581 MB / 0.6018 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.6003, allocations: 8.031 kB / 0.6018 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.325e-05/0.6004, allocations: 54.55 kB / 0.6018 GB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.683e-05/0.6005, allocations: 39.61 kB / 0.6019 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.6009, allocations: 254.2 kB / 0.6021 GB, free: 308 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.6009, allocations: 24.52 kB / 0.6021 GB, free: 284 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/0.601, allocations: 31.91 kB / 0.6022 GB, free: 252 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005272/0.6015, allocations: 278 kB / 0.6024 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.6016, allocations: 11.92 kB / 0.6024 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.6016, allocations: 20 kB / 0.6024 GB, free: 15.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.6016, allocations: 4 kB / 0.6024 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.6021, allocations: 199.8 kB / 0.6026 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.6039, allocations: 1.304 MB / 0.6039 GB, free: 14.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.6043, allocations: 250.4 kB / 0.6042 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.6043, allocations: 16.08 kB / 0.6042 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.6044, allocations: 38.67 kB / 0.6042 GB, free: 13.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.6044, allocations: 0 / 0.6042 GB, free: 13.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.003077/0.6075, allocations: 1.623 MB / 0.6058 GB, free: 12.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.6076, allocations: 132.5 kB / 0.6059 GB, free: 11.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.6078, allocations: 200.1 kB / 0.6061 GB, free: 11.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.6079, allocations: 29.7 kB / 0.6061 GB, free: 11.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.608, allocations: 184.2 kB / 0.6063 GB, free: 11.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.56e-05/0.6081, allocations: 114.3 kB / 0.6064 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.6081, allocations: 8 kB / 0.6064 GB, free: 11.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.6083, allocations: 344 kB / 0.6068 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.6086, allocations: 108.8 kB / 0.6069 GB, free: 10.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003606/0.609, allocations: 246.8 kB / 0.6071 GB, free: 10.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.6093, allocations: 148.2 kB / 0.6072 GB, free: 10.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.6093, allocations: 0 / 0.6072 GB, free: 10.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007769/0.6101, allocations: 420.8 kB / 0.6076 GB, free: 10.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.6101, allocations: 11.98 kB / 0.6076 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.6101, allocations: 4 kB / 0.6077 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.6101, allocations: 8 kB / 0.6077 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.6105, allocations: 107.8 kB / 0.6078 GB, free: 9.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.6106, allocations: 12.25 kB / 0.6078 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.6108, allocations: 39.83 kB / 0.6078 GB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.6108, allocations: 12 kB / 0.6078 GB, free: 9.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001814/0.611, allocations: 158.2 kB / 0.608 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.6112, allocations: 27.67 kB / 0.608 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.031e-05/0.6112, allocations: 33.7 kB / 0.608 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.6113, allocations: 8 kB / 0.608 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6113, allocations: 0 / 0.608 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.6113, allocations: 0 / 0.608 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.6128, allocations: 1.013 MB / 0.609 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6128, allocations: 448 / 0.609 GB, free: 8.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/0.6132, allocations: 87.94 kB / 0.6091 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.6133, allocations: 4 kB / 0.6091 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.6133, allocations: 12 kB / 0.6091 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.6133, allocations: 4 kB / 0.6091 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6133, allocations: 0 / 0.6091 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.6146, allocations: 0.8232 MB / 0.6099 GB, free: 7.637 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.295e-05/0.6147, allocations: 105 kB / 0.61 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.6147, allocations: 8.297 kB / 0.61 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002948/0.615, allocations: 27.98 kB / 0.6101 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.6152, allocations: 27.91 kB / 0.6101 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.6152, allocations: 23.92 kB / 0.6101 GB, free: 7.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.6154, allocations: 156.4 kB / 0.6103 GB, free: 7.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6154, allocations: 0 / 0.6103 GB, free: 7.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004995/0.6159, allocations: 67.98 kB / 0.6103 GB, free: 7.211 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001675/0.6176, allocations: 1.708 MB / 0.612 GB, free: 5.445 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006673/0.6182, allocations: 296.2 kB / 0.6123 GB, free: 5.156 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.6183, allocations: 0 / 0.6123 GB, free: 5.156 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.6186, allocations: 144.1 kB / 0.6124 GB, free: 5.016 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004638/0.619, allocations: 33.36 kB / 0.6125 GB, free: 4.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.6243, allocations: 5.026 MB / 0.6174 GB, free: 15.79 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.6247, allocations: 0.7761 MB / 0.6181 GB, free: 14.99 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.6249, allocations: 30.97 kB / 0.6182 GB, free: 14.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.6251, allocations: 87.97 kB / 0.6182 GB, free: 14.87 MB / 442.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6251, allocations: 0 / 0.6182 GB, free: 14.87 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.6446, allocations: 4.755 MB / 0.6229 GB, free: 10.24 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/0.6449, allocations: 165.5 kB / 0.623 GB, free: 10 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.531, allocations: 0 / 0.623 GB, free: 10 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat