Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",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.001506/0.001506, allocations: 177.7 kB / 8.046 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.377/2.377, allocations: 205.3 MB / 213.8 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 90.61 kB / 261.8 MB, free: 1.609 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09999/0.09999, allocations: 12.59 MB / 322.4 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.364e-05/2.366e-05, allocations: 4 kB / 379.1 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3456, allocations: 50.35 MB / 429.4 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.4927, allocations: 76.86 MB / 0.4944 GB, free: 5.359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.493, allocations: 75.95 kB / 0.4945 GB, free: 5.285 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003591/0.4967, allocations: 0.9931 MB / 0.4954 GB, free: 4.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.4967, allocations: 0 / 0.4954 GB, free: 4.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.4967, allocations: 7.938 kB / 0.4955 GB, free: 4.285 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004053/0.4972, allocations: 330.5 kB / 0.4958 GB, free: 3.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.4972, allocations: 12.03 kB / 0.4958 GB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.258e-05/0.4973, allocations: 15.89 kB / 0.4958 GB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.4975, allocations: 193.2 kB / 0.496 GB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.4976, allocations: 0 / 0.496 GB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.4976, allocations: 3.953 kB / 0.496 GB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.463e-05/0.4977, allocations: 12 kB / 0.496 GB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.4979, allocations: 77.06 kB / 0.4961 GB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.4979, allocations: 4 kB / 0.4961 GB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.4979, allocations: 0 / 0.4961 GB, free: 3.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4979, allocations: 4 kB / 0.4961 GB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003526/0.4983, allocations: 234.3 kB / 0.4963 GB, free: 3.277 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.468e-05/0.4984, allocations: 37.09 kB / 0.4963 GB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.074e-05/0.4984, allocations: 21.83 kB / 0.4964 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.4985, allocations: 0 / 0.4964 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.4985, allocations: 34.56 kB / 0.4964 GB, free: 3.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.4985, allocations: 3.938 kB / 0.4964 GB, free: 3.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001702/0.4987, allocations: 41.64 kB / 0.4964 GB, free: 3.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.053e-05/0.4988, allocations: 81.17 kB / 0.4965 GB, free: 3.004 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.499, allocations: 126.4 kB / 0.4966 GB, free: 2.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.499, allocations: 25.7 kB / 0.4967 GB, free: 2.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.499, allocations: 84.14 kB / 0.4967 GB, free: 2.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.795e-06/0.4991, allocations: 0 / 0.4967 GB, free: 2.758 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.4991, allocations: 0 / 0.4967 GB, free: 2.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4992, allocations: 314.8 kB / 0.497 GB, free: 2.441 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.659e-05/0.4993, allocations: 4 kB / 0.497 GB, free: 2.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.405e-05/0.4993, allocations: 13.72 kB / 0.4971 GB, free: 2.418 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.177e-05/0.4993, allocations: 8 kB / 0.4971 GB, free: 2.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4993, allocations: 0 / 0.4971 GB, free: 2.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.231e-05/0.4994, allocations: 45.58 kB / 0.4971 GB, free: 2.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.4995, allocations: 4 kB / 0.4971 GB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4995, allocations: 4 kB / 0.4971 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.4995, allocations: 0 / 0.4971 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.617e-05/0.4995, allocations: 0 / 0.4971 GB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.4995, allocations: 4.125 kB / 0.4971 GB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.897e-05/0.4996, allocations: 4 kB / 0.4971 GB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.4996, allocations: 0 / 0.4971 GB, free: 2.344 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.544e-05/0.4997, allocations: 101 kB / 0.4972 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001037/0.4998, allocations: 61.42 kB / 0.4973 GB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.462e-05/0.4999, allocations: 7.906 kB / 0.4973 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.4999, allocations: 3.969 kB / 0.4973 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.4999, allocations: 4 kB / 0.4973 GB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4999, allocations: 4.062 kB / 0.4973 GB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.5, allocations: 3.984 kB / 0.4973 GB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.5002, allocations: 142.2 kB / 0.4974 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.5002, allocations: 0 / 0.4974 GB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.25e-05/0.5002, allocations: 3.953 kB / 0.4974 GB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.5002, allocations: 4 kB / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.5002, allocations: 0 / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.5002, allocations: 0 / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.5003, allocations: 0 / 0.4974 GB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.5004, allocations: 166 kB / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.5005, allocations: 93 kB / 0.4977 GB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.5005, allocations: 3.984 kB / 0.4977 GB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-05/0.5007, allocations: 4 kB / 0.4977 GB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.103e-05/0.5007, allocations: 0 / 0.4977 GB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.5007, allocations: 0 / 0.4977 GB, free: 1.664 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.713e-05/0.5008, allocations: 96.98 kB / 0.4978 GB, free: 1.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5008, allocations: 7.938 kB / 0.4978 GB, free: 1.562 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.5011, allocations: 4 kB / 0.4978 GB, free: 1.559 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: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005181/0.5016, allocations: 0.7563 MB / 0.4985 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.832e-05/0.5017, allocations: 16.03 kB / 0.4985 GB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5018, allocations: 0 / 0.4985 GB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.048e-05/0.5018, allocations: 4 kB / 0.4986 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.5021, allocations: 15.39 kB / 0.4986 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005212/0.5027, allocations: 126.2 kB / 0.4987 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.503, allocations: 0.6926 MB / 0.4994 GB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.932e-05/0.5031, allocations: 4 kB / 0.4994 GB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.5031, allocations: 15.44 kB / 0.4994 GB, free: 15.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.482e-06/0.5031, allocations: 0 / 0.4994 GB, free: 15.83 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03792/0.5411, allocations: 0.7992 MB / 0.5002 GB, free: 15.04 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003611/0.5415, allocations: 171.7 kB / 0.5003 GB, free: 14.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.937, allocations: 0 / 0.5003 GB, free: 14.84 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat