Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",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.0009849/0.0009851, allocations: 176.5 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.681/1.681, allocations: 205.4 MB / 222 MB, free: 13.84 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008292/0.0008293, allocations: 106.2 kB / 270.3 MB, free: 13.36 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08073/0.08073, allocations: 12.59 MB / 331.1 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004063, allocations: 16.19 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09429/0.09472, allocations: 50.38 MB / 442.5 MB, free: 10.88 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.002006/0.09677, allocations: 1.576 MB / 444.1 MB, free: 9.285 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.09791, allocations: 0.9408 MB / 445 MB, free: 8.336 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.09806, allocations: 7.938 kB / 445 MB, free: 8.328 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0006027/0.09867, allocations: 131.6 kB / 445.2 MB, free: 8.199 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.09891, allocations: 99.69 kB / 445.3 MB, free: 8.102 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.09935, allocations: 159.4 kB / 445.4 MB, free: 7.949 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001939/0.09955, allocations: 175.4 kB / 445.6 MB, free: 7.777 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.09968, allocations: 26.22 kB / 445.6 MB, free: 7.75 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 9.597e-05/0.09979, allocations: 71.66 kB / 445.7 MB, free: 7.68 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.09989, allocations: 63.69 kB / 445.7 MB, free: 7.617 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.09992, allocations: 4 kB / 445.7 MB, free: 7.613 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.1, allocations: 43.97 kB / 445.8 MB, free: 7.57 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.1001, allocations: 39.83 kB / 445.8 MB, free: 7.531 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 4.899e-05/0.1002, allocations: 53.58 kB / 445.9 MB, free: 7.473 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.1003, allocations: 147.9 kB / 446 MB, free: 7.328 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1004, allocations: 0 / 446 MB, free: 7.328 MB / 282.8 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1004, allocations: 0 / 446 MB, free: 7.328 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.1004, allocations: 0 / 446 MB, free: 7.328 MB / 282.8 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.0006743/0.1011, allocations: 0.4962 MB / 446.5 MB, free: 6.777 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1011, allocations: 12.03 kB / 446.5 MB, free: 6.766 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.634e-05/0.1011, allocations: 38.55 kB / 446.6 MB, free: 6.719 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.1012, allocations: 23.72 kB / 446.6 MB, free: 6.695 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.1014, allocations: 257.6 kB / 446.8 MB, free: 6.402 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.1015, allocations: 8 kB / 446.8 MB, free: 6.395 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.1015, allocations: 7.984 kB / 446.9 MB, free: 6.387 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.1018, allocations: 171.5 kB / 447 MB, free: 6.191 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.1018, allocations: 3.938 kB / 447 MB, free: 6.188 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.1018, allocations: 0 / 447 MB, free: 6.188 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1019, allocations: 3.938 kB / 447 MB, free: 6.184 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.539e-05/0.102, allocations: 43.86 kB / 447.1 MB, free: 6.141 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000405/0.1024, allocations: 383.2 kB / 447.4 MB, free: 5.707 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.1026, allocations: 130.5 kB / 447.6 MB, free: 5.543 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.494e-05/0.1027, allocations: 63.34 kB / 447.6 MB, free: 5.469 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.1027, allocations: 4 kB / 447.6 MB, free: 5.465 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001406/0.1028, allocations: 67.39 kB / 447.7 MB, free: 5.387 MB / 282.8 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.1028, allocations: 0 / 447.7 MB, free: 5.387 MB / 282.8 MB Notification: Performance of matching and sorting (n=11): time 0.0003037/0.1032, allocations: 157.2 kB / 447.9 MB, free: 5.227 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.1032, allocations: 178.5 kB / 448 MB, free: 5.016 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.1034, allocations: 261 kB / 448.3 MB, free: 4.754 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.1035, allocations: 33.7 kB / 448.3 MB, free: 4.715 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.1035, allocations: 120.5 kB / 448.4 MB, free: 4.594 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.1035, allocations: 19.8 kB / 448.5 MB, free: 4.574 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.1036, allocations: 0 / 448.5 MB, free: 4.574 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.1036, allocations: 326.8 kB / 448.8 MB, free: 4.246 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.367e-05/0.1037, allocations: 23.98 kB / 448.8 MB, free: 4.223 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.995e-05/0.1037, allocations: 83.72 kB / 448.9 MB, free: 4.113 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.177e-05/0.1038, allocations: 39.95 kB / 448.9 MB, free: 4.074 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1038, allocations: 0 / 448.9 MB, free: 4.074 MB / 282.8 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001707/0.104, allocations: 129.3 kB / 449 MB, free: 3.941 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.104, allocations: 4 kB / 449.1 MB, free: 3.938 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.104, allocations: 4 kB / 449.1 MB, free: 3.934 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.104, allocations: 0 / 449.1 MB, free: 3.934 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.071e-05/0.1041, allocations: 19.92 kB / 449.1 MB, free: 3.914 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1041, allocations: 12.14 kB / 449.1 MB, free: 3.902 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.676e-05/0.1042, allocations: 11.94 kB / 449.1 MB, free: 3.891 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1042, allocations: 4 kB / 449.1 MB, free: 3.887 MB / 282.8 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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked 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 9.302e-05/0.1043, allocations: 145.6 kB / 449.2 MB, free: 3.734 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.185e-05/0.1044, allocations: 77.34 kB / 449.3 MB, free: 3.652 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.364e-05/0.1045, allocations: 25.7 kB / 449.3 MB, free: 3.629 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1045, allocations: 12.08 kB / 449.4 MB, free: 3.617 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1045, allocations: 320 / 449.4 MB, free: 3.617 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1045, allocations: 3.953 kB / 449.4 MB, free: 3.613 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001307/0.1046, allocations: 229.5 kB / 449.6 MB, free: 3.34 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1046, allocations: 7.938 kB / 449.6 MB, free: 3.332 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.512e-05/0.1047, allocations: 4 kB / 449.6 MB, free: 3.328 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1047, allocations: 4 kB / 449.6 MB, free: 3.324 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1047, allocations: 4 kB / 449.6 MB, free: 3.32 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.1047, allocations: 7.984 kB / 449.6 MB, free: 3.312 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1047, allocations: 0 / 449.6 MB, free: 3.312 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.1049, allocations: 171.3 kB / 449.8 MB, free: 3.117 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.518e-05/0.105, allocations: 120.8 kB / 449.9 MB, free: 2.98 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.105, allocations: 4 kB / 449.9 MB, free: 2.977 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.42e-05/0.1051, allocations: 7.984 kB / 449.9 MB, free: 2.969 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.1051, allocations: 8 kB / 449.9 MB, free: 2.961 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1051, allocations: 4 kB / 449.9 MB, free: 2.957 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001341/0.1053, allocations: 200.5 kB / 450.1 MB, free: 2.758 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1053, allocations: 0 / 450.1 MB, free: 2.758 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002288/0.1055, allocations: 35.98 kB / 450.2 MB, free: 2.723 MB / 282.8 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001005/0.1065, allocations: 1.023 MB / 451.2 MB, free: 1.672 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001752/0.1067, allocations: 75.91 kB / 451.3 MB, free: 1.598 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1067, allocations: 3.938 kB / 451.3 MB, free: 1.594 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 5.618e-05/0.1068, allocations: 28.36 kB / 451.3 MB, free: 1.566 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.1072, allocations: 64.44 kB / 451.3 MB, free: 1.504 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1083, allocations: 1.043 MB / 452.4 MB, free: 392 kB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.1086, allocations: 0.7439 MB / 453.1 MB, free: 15.61 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 7.576e-05/0.1087, allocations: 21.53 kB / 453.2 MB, free: 15.59 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.42e-05/0.1088, allocations: 51.42 kB / 453.2 MB, free: 15.54 MB / 298.8 MB Notification: Performance of SimCode: time 2.81e-07/0.1088, allocations: 0 / 453.2 MB, free: 15.54 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.1252, allocations: 4.337 MB / 457.5 MB, free: 11.2 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.1254, allocations: 261 kB / 457.8 MB, free: 10.86 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/1.818, allocations: 0 / 457.8 MB, free: 10.86 MB / 298.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat