Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.002665/0.002665, allocations: 176.7 kB / 8.051 MB, free: 1.023 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.096/2.096, allocations: 205.3 MB / 213.8 MB, free: 13.69 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.001136/0.001136, allocations: 95.91 kB / 261.8 MB, free: 13.43 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.1074/0.1074, allocations: 12.59 MB / 322.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.917e-05/1.922e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09656, allocations: 50.37 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4456/0.5422, allocations: 76.86 MB / 0.4944 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5425, allocations: 75.19 kB / 0.4945 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003385/0.5459, allocations: 1.06 MB / 0.4955 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.546, allocations: 0 / 0.4955 GB, free: 11.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.546, allocations: 0 / 0.4955 GB, free: 11.62 MB / 330.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.0003246/0.5463, allocations: 348.2 kB / 0.4958 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.5464, allocations: 11.78 kB / 0.4959 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.782e-05/0.5464, allocations: 7.75 kB / 0.4959 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.5466, allocations: 187 kB / 0.496 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.5466, allocations: 3.938 kB / 0.496 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.5467, allocations: 11.83 kB / 0.4961 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.789e-05/0.5468, allocations: 8.25 kB / 0.4961 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.5469, allocations: 80.61 kB / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.589e-06/0.547, allocations: 0 / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.547, allocations: 0 / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.547, allocations: 0 / 0.4961 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003414/0.5473, allocations: 243.5 kB / 0.4964 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.446e-05/0.5474, allocations: 42.7 kB / 0.4964 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.5475, allocations: 14.53 kB / 0.4964 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.5475, allocations: 3.984 kB / 0.4964 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.5475, allocations: 37.25 kB / 0.4965 GB, free: 10.63 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.613e-06/0.5475, allocations: 0 / 0.4965 GB, free: 10.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.000154/0.5477, allocations: 48.48 kB / 0.4965 GB, free: 10.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.5477, allocations: 80.34 kB / 0.4966 GB, free: 10.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.5479, allocations: 113.8 kB / 0.4967 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.5479, allocations: 29.55 kB / 0.4967 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.5479, allocations: 88.38 kB / 0.4968 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.024e-05/0.5479, allocations: 3.375 kB / 0.4968 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.548, allocations: 0 / 0.4968 GB, free: 10.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.121e-05/0.548, allocations: 314.7 kB / 0.4971 GB, free: 9.973 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.325e-05/0.5481, allocations: 0 / 0.4971 GB, free: 9.973 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.042e-05/0.5481, allocations: 17.22 kB / 0.4971 GB, free: 9.957 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.724e-05/0.5481, allocations: 64 / 0.4971 GB, free: 9.957 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5481, allocations: 4 kB / 0.4971 GB, free: 9.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.45e-05/0.5482, allocations: 55.47 kB / 0.4972 GB, free: 9.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.5482, allocations: 3.844 kB / 0.4972 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5482, allocations: 0 / 0.4972 GB, free: 9.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.5483, allocations: 3.938 kB / 0.4972 GB, free: 9.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.975e-05/0.5484, allocations: 14.86 kB / 0.4972 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.5484, allocations: 0 / 0.4972 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.489e-05/0.5484, allocations: 3.875 kB / 0.4972 GB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.5485, allocations: 8.062 kB / 0.4972 GB, free: 9.895 MB / 330.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 5.197e-05/0.5485, allocations: 103.1 kB / 0.4973 GB, free: 9.789 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.452e-05/0.5486, allocations: 48.23 kB / 0.4974 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.5487, allocations: 10.53 kB / 0.4974 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.5487, allocations: 7.812 kB / 0.4974 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.5487, allocations: 0 / 0.4974 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.5487, allocations: 0 / 0.4974 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5487, allocations: 0 / 0.4974 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.5489, allocations: 147.6 kB / 0.4975 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.5489, allocations: 8.016 kB / 0.4975 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.04e-05/0.549, allocations: 7.109 kB / 0.4975 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.549, allocations: 0 / 0.4975 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.549, allocations: 0 / 0.4975 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.549, allocations: 7.812 kB / 0.4975 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.549, allocations: 0 / 0.4975 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.5492, allocations: 162.7 kB / 0.4977 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-05/0.5492, allocations: 88 kB / 0.4978 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.5492, allocations: 0 / 0.4978 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.238e-05/0.5493, allocations: 3.844 kB / 0.4978 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.895e-05/0.5494, allocations: 5.766 kB / 0.4978 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.5494, allocations: 3.844 kB / 0.4978 GB, free: 9.312 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.282e-05/0.5495, allocations: 95.64 kB / 0.4979 GB, free: 9.238 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5495, allocations: 0 / 0.4979 GB, free: 9.238 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002967/0.5498, allocations: 7.875 kB / 0.4979 GB, free: 9.234 MB / 330.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.0002926/0.5501, allocations: 0.7549 MB / 0.4986 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.612e-05/0.5502, allocations: 10.84 kB / 0.4986 GB, free: 8.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.5502, allocations: 8 kB / 0.4986 GB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.733e-05/0.5502, allocations: 3.844 kB / 0.4987 GB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.5505, allocations: 14.36 kB / 0.4987 GB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004291/0.551, allocations: 119.6 kB / 0.4988 GB, free: 8.344 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.5512, allocations: 0.693 MB / 0.4995 GB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.467e-05/0.5512, allocations: 0 / 0.4995 GB, free: 7.645 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.29e-05/0.5513, allocations: 20.27 kB / 0.4995 GB, free: 7.633 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5513, allocations: 0 / 0.4995 GB, free: 7.633 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04029/0.5916, allocations: 0.8141 MB / 0.5003 GB, free: 7.562 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002521/0.5919, allocations: 166.1 kB / 0.5004 GB, free: 7.375 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/2.98, allocations: 0 / 0.5004 GB, free: 7.375 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat