Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009915/0.0009914, allocations: 101 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2452/0.2452, allocations: 45.15 MB / 383.8 MB, free: 232 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.519e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1392, allocations: 63.25 MB / 0.5044 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4476/0.5869, allocations: 87.12 MB / 0.5895 GB, free: 15.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000155/0.5871, allocations: 62.91 kB / 0.5896 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004444/0.5916, allocations: 1.62 MB / 0.5912 GB, free: 13.92 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.5916, allocations: 4 kB / 0.5912 GB, free: 13.92 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.5916, allocations: 4 kB / 0.5912 GB, free: 13.91 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.0004833/0.5921, allocations: 385.5 kB / 0.5915 GB, free: 13.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.5921, allocations: 8.031 kB / 0.5916 GB, free: 13.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.5923, allocations: 27.83 kB / 0.5916 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.5924, allocations: 175 kB / 0.5917 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/0.5924, allocations: 0 / 0.5917 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.5925, allocations: 10.73 kB / 0.5918 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.582e-05/0.5926, allocations: 32.67 kB / 0.5918 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.5927, allocations: 71.98 kB / 0.5919 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.5927, allocations: 4.781 kB / 0.5919 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.5927, allocations: 4 kB / 0.5919 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.5927, allocations: 0 / 0.5919 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.5932, allocations: 310.4 kB / 0.5922 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.5934, allocations: 72.33 kB / 0.5922 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.739e-05/0.5935, allocations: 39.09 kB / 0.5923 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.5935, allocations: 4 kB / 0.5923 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.5936, allocations: 85.2 kB / 0.5924 GB, free: 12.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.5937, allocations: 0 / 0.5924 GB, free: 12.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002574/0.5939, allocations: 133.8 kB / 0.5925 GB, free: 12.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.594, allocations: 58.53 kB / 0.5925 GB, free: 12.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.801e-05/0.5941, allocations: 106.8 kB / 0.5926 GB, free: 12.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.5941, allocations: 29.7 kB / 0.5927 GB, free: 12.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.5942, allocations: 86.48 kB / 0.5927 GB, free: 12.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.5942, allocations: 34.77 kB / 0.5928 GB, free: 12.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.5942, allocations: 4 kB / 0.5928 GB, free: 12.22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.5943, allocations: 326.3 kB / 0.5931 GB, free: 11.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.68e-05/0.5944, allocations: 26.06 kB / 0.5931 GB, free: 11.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.085e-05/0.5945, allocations: 68.95 kB / 0.5932 GB, free: 11.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.825e-05/0.5946, allocations: 45.23 kB / 0.5932 GB, free: 11.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5946, allocations: 0 / 0.5932 GB, free: 11.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001856/0.5948, allocations: 122.2 kB / 0.5933 GB, free: 11.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.5948, allocations: 4 kB / 0.5933 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5948, allocations: 4 kB / 0.5934 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.5948, allocations: 0 / 0.5934 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.5949, allocations: 27.33 kB / 0.5934 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.5949, allocations: 8 kB / 0.5934 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.978e-05/0.595, allocations: 7.938 kB / 0.5934 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.595, allocations: 7.938 kB / 0.5934 GB, free: 11.62 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 () * 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 9.631e-05/0.5951, allocations: 126.7 kB / 0.5935 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001856/0.5953, allocations: 130.7 kB / 0.5936 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.5953, allocations: 7.906 kB / 0.5937 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.5954, allocations: 16.05 kB / 0.5937 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.5954, allocations: 0 / 0.5937 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5954, allocations: 4 kB / 0.5937 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.5954, allocations: 3.953 kB / 0.5937 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/0.5958, allocations: 406.4 kB / 0.5941 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.5958, allocations: 0 / 0.5941 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.854e-05/0.5959, allocations: 12 kB / 0.5941 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.5959, allocations: 0 / 0.5941 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.5959, allocations: 3.984 kB / 0.5941 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.5959, allocations: 4.328 kB / 0.5941 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.596, allocations: 7.938 kB / 0.5941 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.5962, allocations: 227.2 kB / 0.5943 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.5963, allocations: 88.95 kB / 0.5944 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.5963, allocations: 3.938 kB / 0.5944 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.5964, allocations: 15.42 kB / 0.5944 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.5964, allocations: 11.94 kB / 0.5944 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.5965, allocations: 4 kB / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.656e-05/0.5965, allocations: 94.7 kB / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5965, allocations: 0 / 0.5945 GB, free: 10.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002315/0.5968, allocations: 23.31 kB / 0.5945 GB, free: 10.46 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) * 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.0005462/0.5973, allocations: 0.7542 MB / 0.5953 GB, free: 9.711 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.5975, allocations: 100.2 kB / 0.5954 GB, free: 9.641 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.5975, allocations: 0 / 0.5954 GB, free: 9.641 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.076e-05/0.5976, allocations: 38 kB / 0.5954 GB, free: 9.613 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001767/0.5978, allocations: 16.72 kB / 0.5954 GB, free: 9.605 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.5982, allocations: 159.9 kB / 0.5956 GB, free: 9.422 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.5986, allocations: 0.6924 MB / 0.5963 GB, free: 8.703 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.381e-05/0.5986, allocations: 17 kB / 0.5963 GB, free: 8.688 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.914e-05/0.5987, allocations: 25.86 kB / 0.5963 GB, free: 8.672 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5987, allocations: 0 / 0.5963 GB, free: 8.672 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.6204, allocations: 1.565 MB / 0.5978 GB, free: 7.113 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002807/0.6207, allocations: 122.5 kB / 0.5979 GB, free: 6.926 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.525/2.146, allocations: 3.938 kB / 0.5979 GB, free: 6.922 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat