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.002471/0.00247, allocations: 185.4 kB / 15.81 MB, free: 6.352 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.305/2.305, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001171/0.001171, allocations: 90.88 kB / 270.3 MB, free: 13.37 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.1002/0.1002, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005434/0.0005437, allocations: 12.59 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.09884, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.00189/0.1008, allocations: 1.197 MB / 443.7 MB, free: 9.641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004148/0.1013, allocations: 136.5 kB / 443.8 MB, free: 9.508 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.611e-05/0.1014, allocations: 4 kB / 443.8 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.89e-05/0.1014, allocations: 3.938 kB / 443.8 MB, free: 9.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.1016, allocations: 11.97 kB / 443.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002806/0.1019, allocations: 27.97 kB / 443.9 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.394e-05/0.102, allocations: 15.92 kB / 443.9 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.91e-05/0.1021, allocations: 15.98 kB / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.092e-05/0.1021, allocations: 7.938 kB / 443.9 MB, free: 9.422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.793e-05/0.1022, allocations: 7.938 kB / 443.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.1022, allocations: 4 kB / 443.9 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.46e-05/0.1022, allocations: 0 / 443.9 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.351e-05/0.1023, allocations: 15.92 kB / 443.9 MB, free: 9.395 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.378e-05/0.1023, allocations: 29.64 kB / 443.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.669e-05/0.1024, allocations: 31.94 kB / 444 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1024, allocations: 0 / 444 MB, free: 9.328 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1024, allocations: 4 kB / 444 MB, free: 9.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.1024, allocations: 0 / 444 MB, free: 9.324 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004234/0.1029, allocations: 352 kB / 444.3 MB, free: 8.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.1029, allocations: 8.031 kB / 444.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.691e-05/0.103, allocations: 34.55 kB / 444.4 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.103, allocations: 7.906 kB / 444.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.1032, allocations: 186.8 kB / 444.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.1032, allocations: 3.953 kB / 444.6 MB, free: 8.648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.1032, allocations: 8 kB / 444.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.1035, allocations: 89.05 kB / 444.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1036, allocations: 0 / 444.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.1036, allocations: 0 / 444.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.1036, allocations: 4 kB / 444.7 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1037, allocations: 23.98 kB / 444.7 MB, free: 8.508 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003072/0.1041, allocations: 253.8 kB / 444.9 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1042, allocations: 49.14 kB / 445 MB, free: 8.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.1042, allocations: 4 kB / 445 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.1042, allocations: 30.56 kB / 445 MB, free: 8.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.733e-06/0.1042, allocations: 0 / 445 MB, free: 8.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003081/0.1046, allocations: 73.83 kB / 445.1 MB, free: 8.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.1046, allocations: 88.98 kB / 445.2 MB, free: 7.914 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1048, allocations: 134 kB / 445.3 MB, free: 7.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.1048, allocations: 25.7 kB / 445.3 MB, free: 7.738 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.1048, allocations: 92.12 kB / 445.4 MB, free: 7.645 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.1049, allocations: 3.906 kB / 445.4 MB, free: 7.641 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.1049, allocations: 0 / 445.4 MB, free: 7.641 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.1049, allocations: 318.8 kB / 445.7 MB, free: 7.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.806e-05/0.105, allocations: 15.94 kB / 445.7 MB, free: 7.305 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-05/0.1051, allocations: 21.7 kB / 445.8 MB, free: 7.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.848e-05/0.1051, allocations: 4 kB / 445.8 MB, free: 7.273 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1052, allocations: 4 kB / 445.8 MB, free: 7.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001621/0.1053, allocations: 61.67 kB / 445.8 MB, free: 7.203 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1054, allocations: 8 kB / 445.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1054, allocations: 0 / 445.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.1054, allocations: 0 / 445.8 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.515e-05/0.1055, allocations: 4 kB / 445.9 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1055, allocations: 0 / 445.9 MB, free: 7.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.437e-05/0.1056, allocations: 4 kB / 445.9 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.1056, allocations: 4 kB / 445.9 MB, free: 7.184 MB / 282.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 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked 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.604e-05/0.1057, allocations: 133.6 kB / 446 MB, free: 7.043 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.952e-05/0.1058, allocations: 37.55 kB / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.1058, allocations: 19.81 kB / 446 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1058, allocations: 3.984 kB / 446 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1058, allocations: 0 / 446 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1059, allocations: 4 kB / 446.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.106, allocations: 169.6 kB / 446.2 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.106, allocations: 0 / 446.2 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.926e-05/0.1061, allocations: 12.02 kB / 446.2 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1061, allocations: 0 / 446.2 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.1062, allocations: 4 kB / 446.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1062, allocations: 0 / 446.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1062, allocations: 0 / 446.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.1064, allocations: 170 kB / 446.4 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.82e-05/0.1065, allocations: 93.03 kB / 446.5 MB, free: 6.441 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.1065, allocations: 7.938 kB / 446.5 MB, free: 6.434 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.1066, allocations: 3.984 kB / 446.5 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.1066, allocations: 4 kB / 446.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.1066, allocations: 0 / 446.5 MB, free: 6.426 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.138e-05/0.1067, allocations: 99.27 kB / 446.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1067, allocations: 4 kB / 446.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002981/0.107, allocations: 4.031 kB / 446.6 MB, free: 6.32 MB / 282.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 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked 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.0004387/0.1075, allocations: 0.772 MB / 447.4 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001787/0.1077, allocations: 27.92 kB / 447.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1077, allocations: 0 / 447.4 MB, free: 5.488 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.731e-05/0.1078, allocations: 8 kB / 447.4 MB, free: 5.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.1081, allocations: 27.66 kB / 447.4 MB, free: 5.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/0.1091, allocations: 0.5772 MB / 448 MB, free: 4.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.1093, allocations: 0.6926 MB / 448.7 MB, free: 4.102 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.247e-05/0.1094, allocations: 3.906 kB / 448.7 MB, free: 4.098 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/0.1094, allocations: 7.438 kB / 448.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of SimCode: time 1.673e-06/0.1094, allocations: 4 kB / 448.7 MB, free: 4.086 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.1282, allocations: 1.159 MB / 449.9 MB, free: 2.941 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001746/0.1284, allocations: 222.6 kB / 450.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/2.601, allocations: 4 kB / 450.1 MB, free: 2.684 MB / 282.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