Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002004/0.002005, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2565, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.002869/0.2594, allocations: 1.544 MB / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004393/0.2599, allocations: 143.5 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.767e-05/0.26, allocations: 0 / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.262e-05/0.2601, allocations: 3.938 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.572e-05/0.2602, allocations: 15.86 kB / 410.5 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002297/0.2604, allocations: 43.89 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.2606, allocations: 39.84 kB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.691e-05/0.2607, allocations: 19.94 kB / 410.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.614e-05/0.2607, allocations: 15.92 kB / 410.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.97e-05/0.2608, allocations: 15.92 kB / 410.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.2608, allocations: 4 kB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.2608, allocations: 7.938 kB / 410.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.832e-05/0.2609, allocations: 11.98 kB / 410.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.519e-05/0.2609, allocations: 31.73 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.261, allocations: 50.78 kB / 410.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.261, allocations: 3.984 kB / 410.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2611, allocations: 4 kB / 410.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.2611, allocations: 0 / 410.7 MB, free: 15.63 MB / 334.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.0004934/0.2616, allocations: 387 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2616, allocations: 8.031 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.2617, allocations: 38.72 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.918e-05/0.2617, allocations: 8.891 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.2619, allocations: 198.6 kB / 411.3 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.262, allocations: 16.3 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.262, allocations: 4.375 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.2623, allocations: 118.5 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2623, allocations: 3.938 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.2623, allocations: 0 / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.2623, allocations: 8 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.2625, allocations: 35.91 kB / 411.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000442/0.2629, allocations: 365.9 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001483/0.2631, allocations: 87.77 kB / 411.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.103e-05/0.2632, allocations: 42.62 kB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.2632, allocations: 0 / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.2632, allocations: 38.5 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.2632, allocations: 4 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003313/0.2636, allocations: 105.5 kB / 412.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.142e-05/0.2637, allocations: 106.8 kB / 412.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2638, allocations: 146.2 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2638, allocations: 25.7 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.2639, allocations: 92.08 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.161e-05/0.2639, allocations: 3.953 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.2639, allocations: 25.7 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2641, allocations: 314.8 kB / 412.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.069e-05/0.2641, allocations: 19.98 kB / 412.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.078e-05/0.2642, allocations: 43.34 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.2644, allocations: 63.34 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2644, allocations: 3.938 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001672/0.2645, allocations: 85.56 kB / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.2646, allocations: 4 kB / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2646, allocations: 0 / 413 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2646, allocations: 4 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.101e-05/0.2647, allocations: 11.98 kB / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2647, allocations: 0 / 413.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.488e-05/0.2647, allocations: 8.109 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.2647, allocations: 12 kB / 413.1 MB, free: 12.92 MB / 334.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 (sample1.u[2],sample1.u[1],sample1.y[2],sample1.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.0001052/0.2649, allocations: 125.7 kB / 413.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.062e-05/0.265, allocations: 49.64 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.265, allocations: 11.83 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.265, allocations: 7.984 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.265, allocations: 0 / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.265, allocations: 3.938 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.2653, allocations: 181.6 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2653, allocations: 4.031 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.2653, allocations: 7.984 kB / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2653, allocations: 4 kB / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.2654, allocations: 96 / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2654, allocations: 0 / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2654, allocations: 0 / 413.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.2656, allocations: 275.5 kB / 413.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.2657, allocations: 93.05 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.2657, allocations: 0 / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.2658, allocations: 4 kB / 413.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/0.2659, allocations: 7.922 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2659, allocations: 4 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.8e-05/0.266, allocations: 113.5 kB / 414 MB, free: 11.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.266, allocations: 4 kB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.2662, allocations: 11.94 kB / 414 MB, free: 11.92 MB / 334.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 (sample1.u[2],sample1.u[1],sample1.y[1],sample1.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.0005718/0.2668, allocations: 0.8062 MB / 414.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001793/0.267, allocations: 47.89 kB / 414.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.267, allocations: 4 kB / 414.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.516e-05/0.2671, allocations: 12 kB / 414.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.2675, allocations: 24.47 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.269, allocations: 1.49 MB / 416.4 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.2693, allocations: 0.6924 MB / 417 MB, free: 8.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.817e-05/0.2693, allocations: 7.984 kB / 417.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.288e-05/0.2694, allocations: 19.44 kB / 417.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2694, allocations: 0 / 417.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.292, allocations: 1.73 MB / 418.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.298, allocations: 3.984 kB / 418.8 MB, free: 7.074 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleVectorizedAndClocked/SampleVectorizedAndClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable sample1.y[2] in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv. Warning: Get data of variable sample1.y[2] from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv failed! " Variables in the reference:time,sample1.y[1],sample1.y[2] Variables in the result:time,step1.startTime,step2.startTime,sample1.u[1],sample1.u[2],sample1.y[1]