Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",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.001025/0.001025, allocations: 176.6 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.43/1.43, 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.0008545/0.0008546, allocations: 86.34 kB / 270.3 MB, free: 13.38 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.07413/0.07413, allocations: 12.59 MB / 331.2 MB, free: 10.32 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.0004929, allocations: 14.34 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09927, allocations: 50.38 MB / 442.5 MB, free: 10.87 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.002291/0.1016, allocations: 1.557 MB / 444.1 MB, free: 9.297 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.103, allocations: 0.9447 MB / 445 MB, free: 8.344 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.1032, allocations: 4 kB / 445 MB, free: 8.34 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0005834/0.1038, allocations: 131.6 kB / 445.1 MB, free: 8.211 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.104, allocations: 91.7 kB / 445.2 MB, free: 8.121 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.1045, allocations: 163.4 kB / 445.4 MB, free: 7.965 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001905/0.1047, allocations: 163.5 kB / 445.5 MB, free: 7.805 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1048, allocations: 34.08 kB / 445.6 MB, free: 7.77 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1049, allocations: 59.66 kB / 445.6 MB, free: 7.711 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.105, allocations: 71.67 kB / 445.7 MB, free: 7.641 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.1051, allocations: 8 kB / 445.7 MB, free: 7.633 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.1052, allocations: 35.98 kB / 445.7 MB, free: 7.598 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.1053, allocations: 43.83 kB / 445.8 MB, free: 7.555 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 6.384e-05/0.1053, allocations: 53.58 kB / 445.8 MB, free: 7.496 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.1056, allocations: 151.9 kB / 446 MB, free: 7.348 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.1056, allocations: 0 / 446 MB, free: 7.348 MB / 282.8 MB Notification: Performance of FrontEnd: time 3.347e-06/0.1056, allocations: 0 / 446 MB, free: 7.348 MB / 282.8 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1056, allocations: 0 / 446 MB, free: 7.348 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.0009082/0.1065, allocations: 496.1 kB / 446.5 MB, free: 6.809 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.1066, allocations: 12.03 kB / 446.5 MB, free: 6.797 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.1066, allocations: 42.55 kB / 446.5 MB, free: 6.746 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.423e-05/0.1067, allocations: 19.72 kB / 446.5 MB, free: 6.727 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.107, allocations: 257.6 kB / 446.8 MB, free: 6.438 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.107, allocations: 4 kB / 446.8 MB, free: 6.434 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.107, allocations: 8 kB / 446.8 MB, free: 6.426 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.1073, allocations: 167.5 kB / 447 MB, free: 6.234 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1073, allocations: 0 / 447 MB, free: 6.234 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.1074, allocations: 7.938 kB / 447 MB, free: 6.227 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1074, allocations: 0 / 447 MB, free: 6.227 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.407e-05/0.1075, allocations: 35.97 kB / 447 MB, free: 6.191 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.1079, allocations: 454.5 kB / 447.5 MB, free: 5.688 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.1081, allocations: 134.5 kB / 447.6 MB, free: 5.52 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.963e-05/0.1082, allocations: 63.3 kB / 447.7 MB, free: 5.445 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.1083, allocations: 0 / 447.7 MB, free: 5.445 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.1084, allocations: 97.03 kB / 447.8 MB, free: 5.332 MB / 282.8 MB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.1084, allocations: 0 / 447.8 MB, free: 5.332 MB / 282.8 MB Notification: Performance of matching and sorting (n=11): time 0.0003403/0.1088, allocations: 153.4 kB / 447.9 MB, free: 5.176 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.501e-05/0.1089, allocations: 166.5 kB / 448.1 MB, free: 4.977 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.1091, allocations: 264.9 kB / 448.3 MB, free: 4.707 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.1092, allocations: 33.69 kB / 448.4 MB, free: 4.668 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.1092, allocations: 124.4 kB / 448.5 MB, free: 4.543 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.1093, allocations: 15.8 kB / 448.5 MB, free: 4.527 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-06/0.1093, allocations: 4 kB / 448.5 MB, free: 4.523 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.1093, allocations: 330.8 kB / 448.8 MB, free: 4.191 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.861e-05/0.1094, allocations: 20 kB / 448.8 MB, free: 4.172 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.287e-05/0.1095, allocations: 78.84 kB / 448.9 MB, free: 4.07 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.812e-05/0.1096, allocations: 35.94 kB / 449 MB, free: 4.035 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1096, allocations: 0 / 449 MB, free: 4.035 MB / 282.8 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001794/0.1098, allocations: 129.6 kB / 449.1 MB, free: 3.902 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.1098, allocations: 4 kB / 449.1 MB, free: 3.898 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1098, allocations: 8.062 kB / 449.1 MB, free: 3.891 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1098, allocations: 3.984 kB / 449.1 MB, free: 3.887 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.845e-05/0.1099, allocations: 15.98 kB / 449.1 MB, free: 3.871 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.1099, allocations: 7.938 kB / 449.1 MB, free: 3.863 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.11, allocations: 15.84 kB / 449.1 MB, free: 3.848 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.11, allocations: 16.14 kB / 449.1 MB, free: 3.832 MB / 282.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.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.0001054/0.1101, allocations: 145.5 kB / 449.3 MB, free: 3.68 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.1102, allocations: 65.45 kB / 449.4 MB, free: 3.609 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.594e-05/0.1103, allocations: 25.7 kB / 449.4 MB, free: 3.586 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1103, allocations: 0 / 449.4 MB, free: 3.586 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1103, allocations: 0 / 449.4 MB, free: 3.586 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1103, allocations: 7.953 kB / 449.4 MB, free: 3.578 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.1104, allocations: 221.6 kB / 449.6 MB, free: 3.312 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1104, allocations: 8.062 kB / 449.6 MB, free: 3.305 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.507e-05/0.1105, allocations: 8 kB / 449.6 MB, free: 3.297 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1105, allocations: 0 / 449.6 MB, free: 3.297 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.1105, allocations: 7.984 kB / 449.6 MB, free: 3.289 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1105, allocations: 0 / 449.6 MB, free: 3.289 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1105, allocations: 4 kB / 449.6 MB, free: 3.285 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001969/0.1107, allocations: 179.2 kB / 449.8 MB, free: 3.082 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.113e-05/0.1108, allocations: 108.8 kB / 449.9 MB, free: 2.957 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.1108, allocations: 8 kB / 449.9 MB, free: 2.949 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.229e-05/0.1109, allocations: 7.984 kB / 449.9 MB, free: 2.941 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.084e-05/0.1109, allocations: 8 kB / 449.9 MB, free: 2.934 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1109, allocations: 7.938 kB / 449.9 MB, free: 2.926 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0001347/0.1111, allocations: 192.5 kB / 450.1 MB, free: 2.734 MB / 282.8 MB Notification: Performance of sort global known variables: time 2e-07/0.1111, allocations: 4 kB / 450.1 MB, free: 2.73 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002218/0.1113, allocations: 39.84 kB / 450.2 MB, free: 2.691 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.00104/0.1124, allocations: 1.004 MB / 451.2 MB, free: 1.656 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001912/0.1126, allocations: 79.84 kB / 451.3 MB, free: 1.578 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1126, allocations: 3.938 kB / 451.3 MB, free: 1.574 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 6.668e-05/0.1126, allocations: 27.98 kB / 451.3 MB, free: 1.547 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.1131, allocations: 64.69 kB / 451.3 MB, free: 1.488 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.1143, allocations: 1.034 MB / 452.4 MB, free: 392 kB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.1146, allocations: 0.7283 MB / 453.1 MB, free: 15.62 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 7.599e-05/0.1147, allocations: 29.53 kB / 453.1 MB, free: 15.6 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.318e-05/0.1148, allocations: 55.41 kB / 453.2 MB, free: 15.54 MB / 298.8 MB Notification: Performance of SimCode: time 2.41e-07/0.1148, allocations: 0 / 453.2 MB, free: 15.54 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.131, allocations: 4.172 MB / 457.4 MB, free: 11.36 MB / 298.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003381/0.1314, allocations: 242 kB / 457.6 MB, free: 11.09 MB / 298.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.942, allocations: 4 kB / 457.6 MB, free: 11.08 MB / 298.8 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat