Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",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.001455/0.001455, 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.357/1.357, allocations: 221.5 MB / 230.3 MB, free: 7.508 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.0008778/0.0008778, allocations: 96.45 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/1.999e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09245, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.3964, allocations: 80.5 MB / 468.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.3967, allocations: 79.95 kB / 468.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01663/0.4133, allocations: 6.2 MB / 474.3 MB, free: 7.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4134, allocations: 3.938 kB / 474.3 MB, free: 7.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.904e-05/0.4134, allocations: 4 kB / 474.3 MB, free: 7.926 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005698/0.414, allocations: 0.4933 MB / 474.8 MB, free: 7.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.414, allocations: 8.031 kB / 474.8 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.656e-05/0.4141, allocations: 23.72 kB / 474.9 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.4145, allocations: 294.4 kB / 475.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4145, allocations: 8 kB / 475.2 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.4146, allocations: 4 kB / 475.2 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001049/0.4147, allocations: 39.98 kB / 475.2 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.4149, allocations: 165.5 kB / 475.4 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.415, allocations: 4 kB / 475.4 MB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.415, allocations: 7.953 kB / 475.4 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.415, allocations: 0 / 475.4 MB, free: 6.766 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004884/0.4155, allocations: 391.7 kB / 475.8 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.4157, allocations: 130.5 kB / 475.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/0.4157, allocations: 55.55 kB / 475.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4158, allocations: 4 kB / 476 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.4159, allocations: 83.28 kB / 476 MB, free: 6.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.4159, allocations: 0 / 476 MB, free: 6.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002479/0.4162, allocations: 133.3 kB / 476.2 MB, free: 5.871 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.361e-05/0.4163, allocations: 192 kB / 476.4 MB, free: 5.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.4166, allocations: 290.2 kB / 476.6 MB, free: 5.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.4166, allocations: 29.7 kB / 476.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.695e-05/0.4167, allocations: 132.3 kB / 476.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.4167, allocations: 19.75 kB / 476.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.4168, allocations: 0 / 476.8 MB, free: 5.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4169, allocations: 330.8 kB / 477.1 MB, free: 4.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.369e-05/0.4169, allocations: 28 kB / 477.2 MB, free: 4.801 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.162e-05/0.417, allocations: 108.5 kB / 477.3 MB, free: 4.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.72e-05/0.4171, allocations: 31.98 kB / 477.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4171, allocations: 4 kB / 477.3 MB, free: 4.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001841/0.4173, allocations: 121.3 kB / 477.4 MB, free: 4.504 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.4173, allocations: 4 kB / 477.4 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.4173, allocations: 4 kB / 477.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4174, allocations: 3.953 kB / 477.4 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.4175, allocations: 32.11 kB / 477.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.4175, allocations: 0 / 477.5 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.433e-05/0.4176, allocations: 11.89 kB / 477.5 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.4176, allocations: 8 kB / 477.5 MB, free: 4.441 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.241e-05/0.4177, allocations: 109 kB / 477.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001889/0.4179, allocations: 129.3 kB / 477.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.4179, allocations: 31.66 kB / 477.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.4181, allocations: 119.6 kB / 477.9 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.4181, allocations: 192 / 477.9 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4182, allocations: 8 kB / 477.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.4182, allocations: 0 / 477.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.4184, allocations: 230.1 kB / 478.1 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4184, allocations: 0 / 478.1 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.142e-05/0.4185, allocations: 23.92 kB / 478.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.4185, allocations: 0 / 478.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4185, allocations: 4 kB / 478.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4185, allocations: 3.953 kB / 478.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4185, allocations: 4 kB / 478.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000231/0.4187, allocations: 208.5 kB / 478.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.4189, allocations: 132.7 kB / 478.5 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.4189, allocations: 11.88 kB / 478.5 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.587e-05/0.419, allocations: 3.984 kB / 478.5 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.4191, allocations: 11.98 kB / 478.5 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.4191, allocations: 8 kB / 478.5 MB, free: 3.305 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002085/0.4193, allocations: 226 kB / 478.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4193, allocations: 0 / 478.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000283/0.4196, allocations: 47.89 kB / 478.8 MB, free: 3.035 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001213/0.4208, allocations: 1.22 MB / 480 MB, free: 1.852 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001952/0.421, allocations: 87.84 kB / 480.1 MB, free: 1.766 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.421, allocations: 0 / 480.1 MB, free: 1.766 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.341e-05/0.4211, allocations: 27.94 kB / 480.1 MB, free: 1.738 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.4214, allocations: 77.42 kB / 480.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006594/0.4221, allocations: 367.1 kB / 480.5 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.4224, allocations: 0.7516 MB / 481.3 MB, free: 492 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.77e-05/0.4225, allocations: 34 kB / 481.3 MB, free: 456 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.4226, allocations: 63.41 kB / 481.4 MB, free: 392 kB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4227, allocations: 3.938 kB / 481.4 MB, free: 388 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.4457, allocations: 4.561 MB / 485.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002714/0.4461, allocations: 184.1 kB / 486.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.265, allocations: 0 / 486.1 MB, free: 11.66 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat