Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.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.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",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.001618/0.001618, allocations: 186.2 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 2.064/2.064, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001225/0.001224, allocations: 89.3 kB / 270.9 MB, free: 8.367 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.5653/0.5653, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006888/0.0006887, allocations: 12 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1315, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4803/0.6118, allocations: 85.73 MB / 0.5625 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.612, allocations: 65.22 kB / 0.5626 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00616/0.6182, allocations: 1.495 MB / 0.564 GB, free: 15.28 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6183, allocations: 0 / 0.564 GB, free: 15.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.6183, allocations: 0 / 0.564 GB, free: 15.28 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007202/0.619, allocations: 401.8 kB / 0.5644 GB, free: 14.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.6191, allocations: 8.031 kB / 0.5644 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.944e-05/0.6192, allocations: 42.55 kB / 0.5645 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.6192, allocations: 11.34 kB / 0.5645 GB, free: 14.78 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.6194, allocations: 176.2 kB / 0.5647 GB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.6194, allocations: 4 kB / 0.5647 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.6195, allocations: 8 kB / 0.5647 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.6197, allocations: 89.64 kB / 0.5648 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.6198, allocations: 0 / 0.5648 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.6198, allocations: 0 / 0.5648 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.6198, allocations: 5.031 kB / 0.5648 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.62, allocations: 51.91 kB / 0.5648 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007201/0.6208, allocations: 332.7 kB / 0.5651 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.6211, allocations: 86.55 kB / 0.5652 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.6211, allocations: 4 kB / 0.5652 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003118/0.6215, allocations: 107.3 kB / 0.5653 GB, free: 13.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 2.064e-06/0.6215, allocations: 0 / 0.5653 GB, free: 13.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006746/0.6222, allocations: 192.9 kB / 0.5655 GB, free: 13.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.6222, allocations: 59.36 kB / 0.5656 GB, free: 13.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.6224, allocations: 109.2 kB / 0.5657 GB, free: 13.44 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.6224, allocations: 33.7 kB / 0.5657 GB, free: 13.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.6225, allocations: 158.8 kB / 0.5658 GB, free: 13.24 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.839e-05/0.6226, allocations: 42.59 kB / 0.5659 GB, free: 13.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.292e-05/0.6226, allocations: 4 kB / 0.5659 GB, free: 13.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.6228, allocations: 318.8 kB / 0.5662 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.6229, allocations: 36.36 kB / 0.5662 GB, free: 12.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.6231, allocations: 92.34 kB / 0.5663 GB, free: 12.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.6233, allocations: 40.53 kB / 0.5664 GB, free: 12.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.6233, allocations: 4 kB / 0.5664 GB, free: 12.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000443/0.6238, allocations: 160.8 kB / 0.5665 GB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.6238, allocations: 4 kB / 0.5665 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.6238, allocations: 6.5 kB / 0.5665 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.6239, allocations: 0 / 0.5665 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.6241, allocations: 28.8 kB / 0.5666 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.6241, allocations: 4 kB / 0.5666 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.6242, allocations: 7.953 kB / 0.5666 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.6242, allocations: 13.41 kB / 0.5666 GB, free: 12.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001506/0.6244, allocations: 136 kB / 0.5667 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.922e-05/0.6244, allocations: 15.83 kB / 0.5667 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.634e-05/0.6245, allocations: 12.5 kB / 0.5667 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6245, allocations: 7.984 kB / 0.5667 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.6245, allocations: 0.8125 kB / 0.5667 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.6245, allocations: 0 / 0.5667 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008575/0.6254, allocations: 442.4 kB / 0.5672 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.6254, allocations: 3.938 kB / 0.5672 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.146e-05/0.6255, allocations: 11.98 kB / 0.5672 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.738e-06/0.6255, allocations: 0 / 0.5672 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.6256, allocations: 7.5 kB / 0.5672 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.6256, allocations: 3.953 kB / 0.5672 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6256, allocations: 0 / 0.5672 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005009/0.6261, allocations: 259.4 kB / 0.5674 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.6262, allocations: 84.95 kB / 0.5675 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.6262, allocations: 7.984 kB / 0.5675 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.6264, allocations: 8 kB / 0.5675 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.6265, allocations: 15.94 kB / 0.5675 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.6265, allocations: 7.984 kB / 0.5676 GB, free: 11.38 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.789e-05/0.6266, allocations: 95.22 kB / 0.5676 GB, free: 11.29 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6266, allocations: 0 / 0.5676 GB, free: 11.29 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003396/0.627, allocations: 20 kB / 0.5677 GB, free: 11.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.000848/0.6278, allocations: 0.785 MB / 0.5684 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003908/0.6282, allocations: 107.8 kB / 0.5685 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.6283, allocations: 0 / 0.5685 GB, free: 10.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.6285, allocations: 55.98 kB / 0.5686 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.6288, allocations: 15.88 kB / 0.5686 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001969/0.6307, allocations: 1.441 MB / 0.57 GB, free: 8.777 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.6311, allocations: 0.7004 MB / 0.5707 GB, free: 8.051 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.365e-05/0.6312, allocations: 27.44 kB / 0.5707 GB, free: 8.023 MB / 394.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6312, allocations: 0 / 0.5707 GB, free: 8.023 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.476/3.107, allocations: 1.516 MB / 0.5722 GB, free: 6.516 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat