Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed",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.001499/0.001499, allocations: 183 kB / 13.19 MB, free: 2.129 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.936/1.936, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001167/0.001167, allocations: 87.55 kB / 267 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4587/0.4587, allocations: 43.47 MB / 358.6 MB, free: 52.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.702e-05/3.734e-05, allocations: 0 / 425.4 MB, free: 8.805 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1441, allocations: 58.84 MB / 484.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5501/0.6942, allocations: 87.41 MB / 0.5583 GB, free: 1.555 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.6945, allocations: 63.97 kB / 0.5583 GB, free: 1.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01484/0.7094, allocations: 4.8 MB / 0.563 GB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.019e-06/0.7095, allocations: 3.938 kB / 0.563 GB, free: 12.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.556e-05/0.7095, allocations: 10.95 kB / 0.563 GB, free: 12.71 MB / 394.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.0008386/0.7103, allocations: 0.5188 MB / 0.5635 GB, free: 12.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.7104, allocations: 12.03 kB / 0.5635 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.702e-05/0.7105, allocations: 61.98 kB / 0.5636 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.908e-05/0.7106, allocations: 35.61 kB / 0.5636 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.711, allocations: 262 kB / 0.5639 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.7111, allocations: 20.56 kB / 0.5639 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.458e-05/0.7111, allocations: 28 kB / 0.5639 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.7116, allocations: 246.1 kB / 0.5642 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/0.7117, allocations: 9.219 kB / 0.5642 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.7117, allocations: 16 kB / 0.5642 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.7117, allocations: 8 kB / 0.5642 GB, free: 11.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/0.712, allocations: 144.8 kB / 0.5643 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.7139, allocations: 1.304 MB / 0.5656 GB, free: 9.848 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003794/0.7143, allocations: 230.3 kB / 0.5658 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.7144, allocations: 79.44 kB / 0.5659 GB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.7145, allocations: 4.188 kB / 0.5659 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.7145, allocations: 38.5 kB / 0.5659 GB, free: 9.445 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.226e-06/0.7145, allocations: 0 / 0.5659 GB, free: 9.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.002202/0.7167, allocations: 1.403 MB / 0.5673 GB, free: 7.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.751e-05/0.7169, allocations: 144.4 kB / 0.5674 GB, free: 7.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.7171, allocations: 189.1 kB / 0.5676 GB, free: 7.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.7171, allocations: 29.7 kB / 0.5677 GB, free: 7.445 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.7173, allocations: 176.2 kB / 0.5678 GB, free: 7.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.72e-05/0.7174, allocations: 118.3 kB / 0.5679 GB, free: 7.152 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.7174, allocations: 8.094 kB / 0.5679 GB, free: 7.145 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7175, allocations: 346.7 kB / 0.5683 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.7177, allocations: 68.88 kB / 0.5683 GB, free: 6.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.7179, allocations: 213.5 kB / 0.5685 GB, free: 6.461 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001973/0.7181, allocations: 100.4 kB / 0.5686 GB, free: 6.363 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7181, allocations: 0 / 0.5686 GB, free: 6.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000513/0.7187, allocations: 345.3 kB / 0.569 GB, free: 6.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.7187, allocations: 8 kB / 0.569 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.7187, allocations: 4 kB / 0.569 GB, free: 6.008 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.7187, allocations: 8 kB / 0.569 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.7191, allocations: 99.88 kB / 0.5691 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.7192, allocations: 11.94 kB / 0.5691 GB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.7194, allocations: 32.14 kB / 0.5691 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.7194, allocations: 25.08 kB / 0.5691 GB, free: 5.836 MB / 394.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 () * 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.0001149/0.7195, allocations: 128.8 kB / 0.5693 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.914e-05/0.7197, allocations: 35.62 kB / 0.5693 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.331e-05/0.7197, allocations: 29.83 kB / 0.5693 GB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.7198, allocations: 4 kB / 0.5693 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.7198, allocations: 8 kB / 0.5693 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.7198, allocations: 0 / 0.5693 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.7211, allocations: 0.9311 MB / 0.5703 GB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.7211, allocations: 4 kB / 0.5703 GB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003736/0.7215, allocations: 87.83 kB / 0.5703 GB, free: 4.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.205e-06/0.7215, allocations: 8 kB / 0.5703 GB, free: 4.535 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.7215, allocations: 12 kB / 0.5704 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.7216, allocations: 7.938 kB / 0.5704 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.7216, allocations: 0 / 0.5704 GB, free: 4.516 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006827/0.7223, allocations: 0.7101 MB / 0.5711 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.511e-05/0.7223, allocations: 97.2 kB / 0.5712 GB, free: 3.637 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.7224, allocations: 8.062 kB / 0.5712 GB, free: 3.629 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.7227, allocations: 35.94 kB / 0.5712 GB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/0.7228, allocations: 23.95 kB / 0.5712 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.7228, allocations: 12 kB / 0.5712 GB, free: 3.559 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.7229, allocations: 153.4 kB / 0.5714 GB, free: 3.406 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7229, allocations: 0 / 0.5714 GB, free: 3.406 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004441/0.7234, allocations: 68 kB / 0.5714 GB, free: 3.34 MB / 394.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 () * 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.001451/0.7248, allocations: 1.588 MB / 0.573 GB, free: 1.699 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000561/0.7254, allocations: 219.8 kB / 0.5732 GB, free: 1.484 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.7254, allocations: 0.8125 kB / 0.5732 GB, free: 1.484 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.7256, allocations: 107.9 kB / 0.5733 GB, free: 1.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.7261, allocations: 37.03 kB / 0.5733 GB, free: 1.344 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.7276, allocations: 0.7879 MB / 0.5741 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.728, allocations: 0.78 MB / 0.5749 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.7282, allocations: 34.91 kB / 0.5749 GB, free: 15.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.7283, allocations: 91.39 kB / 0.575 GB, free: 15.58 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.7283, allocations: 0 / 0.575 GB, free: 15.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.7466, allocations: 4.736 MB / 0.5796 GB, free: 10.91 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/0.7468, allocations: 144 kB / 0.5798 GB, free: 10.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.715, allocations: 0 / 0.5798 GB, free: 10.69 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat