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.00111/0.00111, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 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.5 MB / 230.3 MB, free: 7.566 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.0009093/0.0009093, allocations: 98.66 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.732e-05/1.733e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.314/0.4141, allocations: 75.79 MB / 463.4 MB, free: 2.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.4144, allocations: 75.95 kB / 463.4 MB, free: 2.836 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002951/0.4174, allocations: 1.152 MB / 464.6 MB, free: 1.688 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4174, allocations: 4 kB / 464.6 MB, free: 1.684 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.4174, allocations: 0 / 464.6 MB, free: 1.684 MB / 330.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.0003232/0.4177, allocations: 357.3 kB / 464.9 MB, free: 1.293 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.4178, allocations: 8.781 kB / 464.9 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.4178, allocations: 11.86 kB / 465 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.418, allocations: 182.4 kB / 465.1 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-06/0.4181, allocations: 4 kB / 465.1 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.4181, allocations: 0 / 465.1 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.403e-05/0.4181, allocations: 19.98 kB / 465.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.4183, allocations: 100.9 kB / 465.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.067e-06/0.4184, allocations: 0 / 465.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.28e-06/0.4184, allocations: 0 / 465.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.4184, allocations: 7.953 kB / 465.3 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003151/0.4187, allocations: 246.4 kB / 465.5 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.4189, allocations: 126.3 kB / 465.6 MB, free: 480 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.99e-05/0.419, allocations: 25.72 kB / 465.6 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.419, allocations: 4 kB / 465.7 MB, free: 444 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.4191, allocations: 34.56 kB / 465.7 MB, free: 400 kB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.823e-06/0.4191, allocations: 0 / 465.7 MB, free: 400 kB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001293/0.4192, allocations: 57.64 kB / 465.7 MB, free: 336 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4193, allocations: 81.05 kB / 465.8 MB, free: 236 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.4194, allocations: 119.1 kB / 465.9 MB, free: 108 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.4195, allocations: 29.73 kB / 466 MB, free: 72 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.4195, allocations: 88.14 kB / 466.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.4196, allocations: 0 / 466.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.4196, allocations: 3.938 kB / 466.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4197, allocations: 318.8 kB / 466.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.46e-05/0.4198, allocations: 0 / 466.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.957e-05/0.4198, allocations: 31.42 kB / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.826e-05/0.4198, allocations: 8 kB / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.4198, allocations: 0 / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.471e-05/0.4199, allocations: 57.53 kB / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.4199, allocations: 4 kB / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.4199, allocations: 4 kB / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.42, allocations: 0 / 466.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-05/0.42, allocations: 16.06 kB / 466.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.4201, allocations: 3.953 kB / 466.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.592e-05/0.4201, allocations: 4 kB / 466.5 MB, free: 15.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.4201, allocations: 7.984 kB / 466.5 MB, free: 15.5 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.06e-05/0.4202, allocations: 101 kB / 466.6 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.318e-05/0.4203, allocations: 53.55 kB / 466.7 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.4203, allocations: 11.89 kB / 466.7 MB, free: 15.33 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.06e-05/0.4203, allocations: 12.34 kB / 466.7 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4203, allocations: 7.984 kB / 466.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.4204, allocations: 0 / 466.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4204, allocations: 192 / 466.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.4205, allocations: 142.2 kB / 466.8 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4205, allocations: 0 / 466.8 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.95e-05/0.4206, allocations: 15.92 kB / 466.8 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.4206, allocations: 4 kB / 466.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-06/0.4206, allocations: 0 / 466.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4206, allocations: 4 kB / 466.8 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4206, allocations: 3.984 kB / 466.9 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.4207, allocations: 177.9 kB / 467 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.4208, allocations: 89.09 kB / 467.1 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.4208, allocations: 4 kB / 467.1 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.684e-05/0.4209, allocations: 0 / 467.1 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.4209, allocations: 7.953 kB / 467.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.4209, allocations: 0 / 467.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.885e-05/0.421, allocations: 104.7 kB / 467.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.421, allocations: 0 / 467.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000202/0.4212, allocations: 4 kB / 467.2 MB, free: 14.68 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.0004315/0.4216, allocations: 0.7642 MB / 468 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.399e-05/0.4217, allocations: 23.92 kB / 468 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4217, allocations: 0 / 468 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.087e-06/0.4218, allocations: 0 / 468 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.422, allocations: 23.92 kB / 468 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003352/0.4223, allocations: 130.5 kB / 468.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.4226, allocations: 0.6943 MB / 468.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.177e-05/0.4226, allocations: 4 kB / 468.9 MB, free: 12.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.4227, allocations: 11.44 kB / 468.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4227, allocations: 0 / 468.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01662/0.4393, allocations: 0.897 MB / 469.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.4395, allocations: 153.6 kB / 469.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.362/1.802, allocations: 0 / 469.9 MB, free: 11.85 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