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.001578/0.001578, allocations: 176.8 kB / 16.12 MB, free: 5.68 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.389/1.389, allocations: 205 MB / 221.9 MB, free: 9.141 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.0007022/0.0007022, allocations: 88.17 kB / 269.9 MB, free: 8.68 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.07011/0.07011, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003051, allocations: 20 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07649, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001105/0.07763, allocations: 1.215 MB / 442.4 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002146/0.07786, allocations: 131.6 kB / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.282e-05/0.07791, allocations: 0 / 442.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.596e-05/0.07794, allocations: 7.922 kB / 442.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.635e-05/0.07802, allocations: 0 / 442.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.07821, allocations: 35.91 kB / 442.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.101e-05/0.07827, allocations: 31.92 kB / 442.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.339e-05/0.07833, allocations: 8 kB / 442.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.726e-05/0.07836, allocations: 11.92 kB / 442.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.284e-05/0.07839, allocations: 15.86 kB / 442.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.07841, allocations: 0 / 442.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.042e-06/0.07842, allocations: 0 / 442.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.07845, allocations: 8 kB / 442.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.026e-05/0.07847, allocations: 19.81 kB / 442.6 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.609e-05/0.07853, allocations: 39.81 kB / 442.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.07853, allocations: 4 kB / 442.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.07854, allocations: 4 kB / 442.7 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.235e-06/0.07855, allocations: 0 / 442.7 MB, free: 14.75 MB / 298.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.0002321/0.07878, allocations: 359.5 kB / 443 MB, free: 14.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.07882, allocations: 8.031 kB / 443 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.903e-05/0.07885, allocations: 30.75 kB / 443.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.61e-05/0.07887, allocations: 4.938 kB / 443.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.948e-05/0.07898, allocations: 192.1 kB / 443.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-06/0.07899, allocations: 8.312 kB / 443.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.07901, allocations: 4.375 kB / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.07917, allocations: 97.61 kB / 443.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-06/0.07919, allocations: 3.938 kB / 443.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-06/0.0792, allocations: 0 / 443.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-06/0.07921, allocations: 0 / 443.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.257e-05/0.07927, allocations: 23.92 kB / 443.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.07945, allocations: 253.8 kB / 443.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.914e-05/0.07952, allocations: 53.08 kB / 443.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.07957, allocations: 25.72 kB / 443.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/0.07959, allocations: 0 / 443.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.119e-05/0.07961, allocations: 30.56 kB / 443.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.52e-07/0.07961, allocations: 0 / 443.7 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001636/0.07978, allocations: 77.61 kB / 443.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.07981, allocations: 77.11 kB / 443.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.07988, allocations: 138 kB / 444 MB, free: 13.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.12e-06/0.0799, allocations: 25.7 kB / 444.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.226e-05/0.07993, allocations: 88.12 kB / 444.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.849e-06/0.07994, allocations: 4.094 kB / 444.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.07996, allocations: 17.72 kB / 444.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.546e-05/0.08, allocations: 314.8 kB / 444.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.24e-05/0.08004, allocations: 7.984 kB / 444.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.86e-05/0.08007, allocations: 17.72 kB / 444.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.582e-05/0.08013, allocations: 41.7 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.08014, allocations: 3.938 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.649e-05/0.08023, allocations: 57.53 kB / 444.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.08025, allocations: 8 kB / 444.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.08026, allocations: 0 / 444.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.011e-06/0.08027, allocations: 4.062 kB / 444.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.159e-05/0.08032, allocations: 7.984 kB / 444.6 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.746e-06/0.08033, allocations: 4 kB / 444.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.08036, allocations: 0 / 444.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.08036, allocations: 4 kB / 444.6 MB, free: 12.52 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.08041, allocations: 121.8 kB / 444.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.08046, allocations: 37.61 kB / 444.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.08049, allocations: 15.86 kB / 444.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.0805, allocations: 3.984 kB / 444.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.08051, allocations: 4 kB / 444.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.08051, allocations: 0 / 444.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.08062, allocations: 169.5 kB / 445 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.08063, allocations: 0 / 445 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.08066, allocations: 4 kB / 445 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.08067, allocations: 7.938 kB / 445 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-06/0.08068, allocations: 3.938 kB / 445 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.08069, allocations: 3.984 kB / 445 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.08069, allocations: 0 / 445 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.0808, allocations: 160.3 kB / 445.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/0.08084, allocations: 93 kB / 445.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-06/0.08086, allocations: 4 kB / 445.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.272e-05/0.08091, allocations: 8.031 kB / 445.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.08094, allocations: 0 / 445.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.08094, allocations: 3.984 kB / 445.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.689e-05/0.08099, allocations: 107.2 kB / 445.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08099, allocations: 0 / 445.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001802/0.08118, allocations: 4 kB / 445.4 MB, free: 11.68 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002302/0.08141, allocations: 0.6937 MB / 446 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.509e-05/0.0815, allocations: 23.92 kB / 446.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.08151, allocations: 0 / 446.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.807e-05/0.08154, allocations: 12.16 kB / 446.1 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.0818, allocations: 20.02 kB / 446.1 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007299/0.08254, allocations: 1.285 MB / 447.4 MB, free: 9.527 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.08266, allocations: 0.6809 MB / 448.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.474e-05/0.08268, allocations: 256 / 448.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.08271, allocations: 19.45 kB / 448.1 MB, free: 8.801 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.08272, allocations: 4 kB / 448.1 MB, free: 8.797 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1471/0.2298, allocations: 1.157 MB / 449.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.23, allocations: 233.3 kB / 449.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.015/2.245, allocations: 7.844 kB / 449.5 MB, free: 7.371 MB / 298.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) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches