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.001643/0.001643, allocations: 186.1 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.313/2.313, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001213/0.001213, allocations: 94.91 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1/0.1, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005644/0.0005645, allocations: 13.25 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1012, allocations: 50.36 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.002577/0.1038, allocations: 1.581 MB / 444.1 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1058, allocations: 0.9135 MB / 445 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.1061, allocations: 7.938 kB / 445 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006457/0.1067, allocations: 123.7 kB / 445.1 MB, free: 8.191 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000341/0.1071, allocations: 103.7 kB / 445.2 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007238/0.1078, allocations: 163.3 kB / 445.4 MB, free: 7.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.1081, allocations: 111.8 kB / 445.5 MB, free: 7.824 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.1082, allocations: 34.2 kB / 445.5 MB, free: 7.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001257/0.1083, allocations: 63.7 kB / 445.6 MB, free: 7.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1085, allocations: 63.69 kB / 445.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.1085, allocations: 4 kB / 445.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1087, allocations: 31.98 kB / 445.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.1088, allocations: 35.84 kB / 445.7 MB, free: 7.594 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.287e-05/0.1088, allocations: 53.58 kB / 445.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002736/0.1091, allocations: 155.9 kB / 445.9 MB, free: 7.383 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1091, allocations: 0 / 445.9 MB, free: 7.383 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1091, allocations: 4 kB / 445.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1091, allocations: 3.938 kB / 445.9 MB, free: 7.375 MB / 282.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.0007815/0.1099, allocations: 0.4884 MB / 446.4 MB, free: 6.832 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.11, allocations: 12.03 kB / 446.4 MB, free: 6.82 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.043e-05/0.1101, allocations: 34.56 kB / 446.4 MB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.949e-05/0.1101, allocations: 23.72 kB / 446.5 MB, free: 6.754 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.1105, allocations: 261.6 kB / 446.7 MB, free: 6.457 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.1106, allocations: 8 kB / 446.7 MB, free: 6.449 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.1106, allocations: 4 kB / 446.7 MB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.111, allocations: 175.5 kB / 446.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.111, allocations: 3.984 kB / 446.9 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.1111, allocations: 0 / 446.9 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1111, allocations: 7.938 kB / 446.9 MB, free: 6.234 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1112, allocations: 35.92 kB / 446.9 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005491/0.1118, allocations: 383.2 kB / 447.3 MB, free: 5.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.1121, allocations: 138.5 kB / 447.5 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.1122, allocations: 3.984 kB / 447.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002062/0.1124, allocations: 83.5 kB / 447.5 MB, free: 5.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.885e-06/0.1124, allocations: 4 kB / 447.5 MB, free: 5.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005003/0.1129, allocations: 153.2 kB / 447.7 MB, free: 5.336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.113, allocations: 166.2 kB / 447.9 MB, free: 5.137 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.1134, allocations: 273.3 kB / 448.1 MB, free: 4.863 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.1134, allocations: 29.7 kB / 448.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.1135, allocations: 116.4 kB / 448.3 MB, free: 4.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.1135, allocations: 15.81 kB / 448.3 MB, free: 4.695 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-06/0.1136, allocations: 0 / 448.3 MB, free: 4.695 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.462e-05/0.1136, allocations: 330.8 kB / 448.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.406e-05/0.1137, allocations: 23.98 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1139, allocations: 83.72 kB / 448.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.114, allocations: 31.94 kB / 448.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.114, allocations: 0 / 448.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003135/0.1143, allocations: 133.3 kB / 448.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.1144, allocations: 8 kB / 448.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1144, allocations: 0 / 448.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.1144, allocations: 4 kB / 448.9 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1145, allocations: 8 kB / 448.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1146, allocations: 7.938 kB / 448.9 MB, free: 4.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.1147, allocations: 19.88 kB / 448.9 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.1147, allocations: 12.19 kB / 448.9 MB, free: 4.004 MB / 282.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,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 0.0001494/0.1149, allocations: 141.6 kB / 449.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.115, allocations: 77.34 kB / 449.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.1151, allocations: 25.7 kB / 449.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1151, allocations: 11.92 kB / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.1151, allocations: 0 / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1152, allocations: 0 / 449.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.1154, allocations: 229.7 kB / 449.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1154, allocations: 4 kB / 449.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.539e-05/0.1154, allocations: 19.86 kB / 449.4 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.1155, allocations: 0 / 449.4 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1155, allocations: 8 kB / 449.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1155, allocations: 320 / 449.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.1155, allocations: 0 / 449.4 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.1159, allocations: 212.4 kB / 449.6 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.116, allocations: 116.8 kB / 449.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.116, allocations: 7.953 kB / 449.8 MB, free: 3.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.1162, allocations: 8 kB / 449.8 MB, free: 3.031 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.1162, allocations: 7.984 kB / 449.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.1162, allocations: 8 kB / 449.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1165, allocations: 192.5 kB / 450 MB, free: 2.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-07/0.1165, allocations: 0 / 450 MB, free: 2.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003606/0.1169, allocations: 32 kB / 450 MB, free: 2.793 MB / 282.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,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.001642/0.1185, allocations: 1.262 MB / 451.3 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.1189, allocations: 72.16 kB / 451.3 MB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1189, allocations: 4.062 kB / 451.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.119, allocations: 27.94 kB / 451.4 MB, free: 1.391 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.1196, allocations: 64.44 kB / 451.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.1221, allocations: 1.921 MB / 453.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.1226, allocations: 0.7439 MB / 454.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.1227, allocations: 25.53 kB / 454.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.1229, allocations: 51.42 kB / 454.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of SimCode: time 1.323e-06/0.1229, allocations: 0 / 454.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03356/0.1565, allocations: 4.341 MB / 458.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004295/0.157, allocations: 250.8 kB / 458.8 MB, free: 9.832 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.645/2.802, allocations: 0 / 458.8 MB, free: 9.832 MB / 298.7 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