Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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) 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",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.001311/0.001311, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.335/1.335, allocations: 221.3 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007893/0.0007893, allocations: 97.83 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.87e-05/2.905e-05, allocations: 0 / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.4256, allocations: 76.45 MB / 470.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4258, allocations: 83.94 kB / 470.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00283/0.4287, allocations: 1.152 MB / 472 MB, free: 9.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4287, allocations: 0 / 472 MB, free: 9.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.4287, allocations: 4 kB / 472 MB, free: 9.824 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003436/0.4291, allocations: 347.2 kB / 472.4 MB, free: 9.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.4291, allocations: 8.031 kB / 472.4 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.701e-05/0.4291, allocations: 38.56 kB / 472.4 MB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.4292, allocations: 11.86 kB / 472.4 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.4294, allocations: 190.8 kB / 472.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.4294, allocations: 0 / 472.6 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.4294, allocations: 4 kB / 472.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.4297, allocations: 109.8 kB / 472.7 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4297, allocations: 3.984 kB / 472.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.4297, allocations: 0 / 472.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4297, allocations: 3.953 kB / 472.7 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.799e-05/0.4298, allocations: 15.94 kB / 472.8 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.4301, allocations: 265.8 kB / 473 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.4303, allocations: 130.2 kB / 473.1 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.837e-05/0.4303, allocations: 29.78 kB / 473.2 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.4304, allocations: 0 / 473.2 MB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.4304, allocations: 38.64 kB / 473.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.4304, allocations: 0 / 473.2 MB, free: 8.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001551/0.4306, allocations: 57.5 kB / 473.3 MB, free: 8.375 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.4306, allocations: 77.11 kB / 473.3 MB, free: 8.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.4307, allocations: 128.7 kB / 473.5 MB, free: 8.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.4308, allocations: 37.64 kB / 473.5 MB, free: 8.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.116e-05/0.4308, allocations: 84.14 kB / 473.6 MB, free: 8.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-06/0.4308, allocations: 3.938 kB / 473.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-06/0.4308, allocations: 0 / 473.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.431, allocations: 322.8 kB / 473.9 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.431, allocations: 0 / 473.9 MB, free: 7.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.034e-05/0.431, allocations: 32.59 kB / 473.9 MB, free: 7.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.07e-05/0.431, allocations: 11.94 kB / 473.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4311, allocations: 0 / 473.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.864e-05/0.4311, allocations: 57.53 kB / 474 MB, free: 7.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.4312, allocations: 4 kB / 474 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4312, allocations: 8 kB / 474 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.4312, allocations: 8.078 kB / 474 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.164e-05/0.4313, allocations: 8 kB / 474 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.4313, allocations: 7.969 kB / 474 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.083e-05/0.4313, allocations: 4 kB / 474 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.4313, allocations: 4 kB / 474 MB, free: 7.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.565e-05/0.4314, allocations: 108.9 kB / 474.1 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.81e-05/0.4315, allocations: 49.59 kB / 474.2 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.644e-05/0.4315, allocations: 8.031 kB / 474.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4315, allocations: 7.953 kB / 474.2 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.4315, allocations: 4 kB / 474.2 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.4316, allocations: 0 / 474.2 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.4317, allocations: 165.7 kB / 474.4 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.4317, allocations: 0 / 474.4 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.983e-05/0.4318, allocations: 11.98 kB / 474.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.4318, allocations: 0 / 474.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.4318, allocations: 4 kB / 474.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4318, allocations: 0 / 474.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4318, allocations: 7.891 kB / 474.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.432, allocations: 178.1 kB / 474.6 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.432, allocations: 89 kB / 474.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.4321, allocations: 4 kB / 474.7 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.2e-05/0.4321, allocations: 11.95 kB / 474.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.704e-05/0.4322, allocations: 0 / 474.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.4322, allocations: 4 kB / 474.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.692e-05/0.4322, allocations: 102.4 kB / 474.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4323, allocations: 0 / 474.8 MB, free: 6.684 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001962/0.4325, allocations: 8 kB / 474.8 MB, free: 6.676 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0004222/0.4329, allocations: 0.7681 MB / 475.6 MB, free: 5.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.526e-05/0.433, allocations: 19.94 kB / 475.6 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.433, allocations: 0 / 475.6 MB, free: 5.855 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.433, allocations: 11.94 kB / 475.6 MB, free: 5.844 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.4332, allocations: 27.88 kB / 475.6 MB, free: 5.816 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003837/0.4336, allocations: 123.8 kB / 475.7 MB, free: 5.656 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.4339, allocations: 0.7004 MB / 476.4 MB, free: 4.93 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.517e-05/0.4339, allocations: 3.984 kB / 476.4 MB, free: 4.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.434, allocations: 15.44 kB / 476.5 MB, free: 4.914 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.434, allocations: 0 / 476.5 MB, free: 4.914 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01149/0.4455, allocations: 1.197 MB / 477.7 MB, free: 3.844 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/0.4457, allocations: 167.1 kB / 477.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.482/1.928, allocations: 3.938 kB / 477.8 MB, free: 3.613 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat