Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y.1.|sample.y.2.",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y.1.|sample.y.2.",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 102.9 kB / 16.02 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 199 kB / 16.95 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.802/1.802, allocations: 205.1 MB / 222.8 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0846/0.0846, allocations: 12.59 MB / 282.7 MB, free: 15.65 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003153/0.003153, allocations: 87.88 kB / 343 MB, free: 3.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4384, allocations: 49.39 MB / 392.4 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.004029/0.4424, allocations: 1.582 MB / 393.9 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004383/0.4429, allocations: 141.5 kB / 394.1 MB, free: 47.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.443, allocations: 1.125 kB / 394.1 MB, free: 47.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.4432, allocations: 9.25 kB / 394.1 MB, free: 47.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.4433, allocations: 7.844 kB / 394.1 MB, free: 47.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.4436, allocations: 35.3 kB / 394.1 MB, free: 47.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.4437, allocations: 45.88 kB / 394.2 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.4439, allocations: 19.11 kB / 394.2 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.11e-05/0.4439, allocations: 16.92 kB / 394.2 MB, free: 47.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.528e-05/0.444, allocations: 16.89 kB / 394.2 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.444, allocations: 2.656 kB / 394.2 MB, free: 47.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.4441, allocations: 11.06 kB / 394.2 MB, free: 47.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.741e-05/0.4441, allocations: 15.89 kB / 394.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.4442, allocations: 30.48 kB / 394.3 MB, free: 47.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000164/0.4444, allocations: 51.39 kB / 394.3 MB, free: 47.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4444, allocations: 0 / 394.3 MB, free: 47.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4444, allocations: 0 / 394.3 MB, free: 47.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.4444, allocations: 0 / 394.3 MB, free: 47.8 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006433/0.4451, allocations: 385.6 kB / 394.7 MB, free: 47.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4451, allocations: 9.25 kB / 394.7 MB, free: 47.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.631e-05/0.4452, allocations: 13.28 kB / 394.7 MB, free: 47.4 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.4454, allocations: 201.1 kB / 394.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.4454, allocations: 1.719 kB / 394.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.4454, allocations: 3.031 kB / 394.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.4459, allocations: 121.3 kB / 395.1 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.4459, allocations: 4.891 kB / 395.1 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.4459, allocations: 5.062 kB / 395.1 MB, free: 47.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.4459, allocations: 2.859 kB / 395.1 MB, free: 47.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.4461, allocations: 40.44 kB / 395.1 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.4466, allocations: 365.2 kB / 395.5 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.4468, allocations: 86.72 kB / 395.6 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.215e-05/0.4469, allocations: 31.86 kB / 395.6 MB, free: 46.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.4469, allocations: 6.062 kB / 395.6 MB, free: 46.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.447, allocations: 40.69 kB / 395.6 MB, free: 46.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.447, allocations: 0 / 395.6 MB, free: 46.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004086/0.4474, allocations: 103.5 kB / 395.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/0.4475, allocations: 113.4 kB / 395.8 MB, free: 46.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.4476, allocations: 150.7 kB / 396 MB, free: 46.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.4477, allocations: 25.7 kB / 396 MB, free: 46.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.4477, allocations: 95.84 kB / 396.1 MB, free: 46.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.4478, allocations: 6.062 kB / 396.1 MB, free: 46.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.353e-05/0.4478, allocations: 20.77 kB / 396.1 MB, free: 46.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.848e-05/0.4479, allocations: 318.4 kB / 396.4 MB, free: 45.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.674e-05/0.448, allocations: 17.89 kB / 396.5 MB, free: 45.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.4481, allocations: 43.95 kB / 396.5 MB, free: 45.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.4484, allocations: 72.88 kB / 396.6 MB, free: 45.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.4484, allocations: 4.656 kB / 396.6 MB, free: 45.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003203/0.4487, allocations: 81.89 kB / 396.7 MB, free: 45.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.4488, allocations: 8.812 kB / 396.7 MB, free: 45.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.4488, allocations: 0.5625 kB / 396.7 MB, free: 45.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.534e-05/0.4489, allocations: 7.781 kB / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.449, allocations: 11.92 kB / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/0.4491, allocations: 3.344 kB / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.4492, allocations: 5.859 kB / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.4492, allocations: 0 / 396.7 MB, free: 45.62 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u[2],sample.u[1],sample.y[2],sample.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 0.0002207/0.4494, allocations: 130.4 kB / 396.8 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.4496, allocations: 50.42 kB / 396.9 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.371e-05/0.4496, allocations: 13.2 kB / 396.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.4497, allocations: 4.406 kB / 396.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.4497, allocations: 4.594 kB / 396.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4497, allocations: 3.75 kB / 396.9 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.4501, allocations: 176.4 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4501, allocations: 2.656 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.4502, allocations: 7.594 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.4502, allocations: 0 / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.4502, allocations: 2.406 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.4503, allocations: 0.6562 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4503, allocations: 1.25 kB / 397.1 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.4506, allocations: 268 kB / 397.4 MB, free: 45.01 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.4507, allocations: 94.64 kB / 397.4 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.4508, allocations: 2 kB / 397.4 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.451, allocations: 5.141 kB / 397.5 MB, free: 44.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.976e-05/0.451, allocations: 6.844 kB / 397.5 MB, free: 44.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.451, allocations: 1.281 kB / 397.5 MB, free: 44.9 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.4512, allocations: 112.3 kB / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4512, allocations: 0 / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.4515, allocations: 5.688 kB / 397.6 MB, free: 44.82 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (sample.u[2],sample.u[1],sample.y[1],sample.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 1 * 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.0001211/0.4517, allocations: 99.58 kB / 397.7 MB, free: 44.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002256/0.4519, allocations: 49.12 kB / 397.7 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4519, allocations: 1.125 kB / 397.7 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.845e-05/0.452, allocations: 21.31 kB / 397.7 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.4525, allocations: 32.44 kB / 397.8 MB, free: 44.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.4529, allocations: 216.9 kB / 398 MB, free: 44.5 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.4532, allocations: 0.6925 MB / 398.7 MB, free: 43.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.535e-05/0.4532, allocations: 12.86 kB / 398.7 MB, free: 43.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.4533, allocations: 8.812 kB / 398.7 MB, free: 43.8 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4533, allocations: 3.938 kB / 398.7 MB, free: 43.79 MB / 318.1 MB Notification: Performance of Templates: time 0.003503/0.4568, allocations: 0.5773 MB / 399.3 MB, free: 43.6 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches