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: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001302/0.001303, allocations: 176.9 kB / 16.45 MB, free: 5.684 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.406/1.406, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007869/0.0007871, allocations: 98.28 kB / 270.9 MB, free: 8.344 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.06991/0.06991, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003718, allocations: 16 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0771/0.07749, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.001351/0.07887, allocations: 1.187 MB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000347/0.07925, allocations: 139.7 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.07935, allocations: 7.938 kB / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.07939, allocations: 0 / 444.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.07951, allocations: 3.984 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.07975, allocations: 27.92 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.153e-05/0.07983, allocations: 31.86 kB / 444.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.611e-05/0.07991, allocations: 15.97 kB / 444.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.571e-05/0.07994, allocations: 8 kB / 444.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.785e-05/0.07998, allocations: 11.88 kB / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.08, allocations: 0 / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.237e-06/0.08002, allocations: 0 / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.875e-05/0.08005, allocations: 11.98 kB / 444.5 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.08008, allocations: 33.64 kB / 444.5 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.178e-05/0.08014, allocations: 19.95 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.08015, allocations: 4 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08015, allocations: 0 / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.08016, allocations: 0 / 444.5 MB, free: 14.27 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.0003403/0.08051, allocations: 359.4 kB / 444.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.08055, allocations: 8.031 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.08059, allocations: 11.89 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.08074, allocations: 182.9 kB / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.08076, allocations: 4 kB / 445.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.08078, allocations: 7.953 kB / 445.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.08098, allocations: 96.98 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.08102, allocations: 0 / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.08104, allocations: 4 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.08105, allocations: 3.984 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.482e-05/0.08113, allocations: 19.92 kB / 445.2 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.08139, allocations: 261.8 kB / 445.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.656e-05/0.08147, allocations: 49.14 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.892e-05/0.08151, allocations: 21.78 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.08154, allocations: 4 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.08156, allocations: 34.56 kB / 445.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.08156, allocations: 0 / 445.6 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000193/0.08176, allocations: 73.52 kB / 445.7 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.0818, allocations: 81.36 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.705e-05/0.08188, allocations: 135.5 kB / 445.9 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.181e-06/0.0819, allocations: 25.7 kB / 445.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.801e-05/0.08193, allocations: 88.14 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.604e-06/0.08194, allocations: 3.906 kB / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-06/0.08195, allocations: 0 / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.897e-05/0.08199, allocations: 322.7 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.597e-05/0.08204, allocations: 11.98 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.038e-05/0.08207, allocations: 21.72 kB / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.467e-05/0.08211, allocations: 11.98 kB / 446.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.08212, allocations: 3.938 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.075e-05/0.08222, allocations: 57.69 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.08224, allocations: 4 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.08225, allocations: 4 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.08226, allocations: 0 / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.426e-05/0.08232, allocations: 4 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.08233, allocations: 0 / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.847e-05/0.08237, allocations: 11.92 kB / 446.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.08238, allocations: 0 / 446.4 MB, free: 12.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.08243, allocations: 130.5 kB / 446.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.08248, allocations: 41.59 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.406e-05/0.08251, allocations: 11.83 kB / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.08252, allocations: 0 / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.08253, allocations: 0 / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.08254, allocations: 0 / 446.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.08266, allocations: 173.6 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.08266, allocations: 0 / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.08271, allocations: 7.938 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.08272, allocations: 4.031 kB / 446.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.08273, allocations: 4 kB / 446.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.08273, allocations: 3.938 kB / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.08274, allocations: 0 / 446.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.08285, allocations: 156.3 kB / 446.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.0829, allocations: 97.08 kB / 447 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.08291, allocations: 0 / 447 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.244e-05/0.08298, allocations: 8 kB / 447 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.598e-05/0.08301, allocations: 0 / 447 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.08302, allocations: 4 kB / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.477e-05/0.08307, allocations: 107.8 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08308, allocations: 3.938 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002033/0.08329, allocations: 4 kB / 447.2 MB, free: 11.27 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 (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 6.062e-05/0.08335, allocations: 95.25 kB / 447.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.08347, allocations: 23.98 kB / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.08348, allocations: 0 / 447.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.085e-05/0.08351, allocations: 8 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.08381, allocations: 23.95 kB / 447.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002301/0.08406, allocations: 183.4 kB / 447.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.08417, allocations: 0.6848 MB / 448.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.927e-05/0.0842, allocations: 11.44 kB / 448.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.0842, allocations: 0 / 448.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of Templates: time 0.001524/0.08573, allocations: 0.6172 MB / 448.8 MB, free: 9.559 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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