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.001221/0.001221, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2599, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.003166/0.2631, allocations: 1.538 MB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004576/0.2636, allocations: 139.5 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.591e-05/0.2637, allocations: 0 / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.2639, allocations: 7.938 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.264, allocations: 15.86 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.2643, allocations: 35.91 kB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.2644, allocations: 43.73 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.2646, allocations: 15.98 kB / 410.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.405e-05/0.2646, allocations: 19.86 kB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.044e-05/0.2647, allocations: 19.92 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.2647, allocations: 7.938 kB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.337e-05/0.2647, allocations: 4 kB / 410.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.305e-05/0.2648, allocations: 11.98 kB / 410.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.727e-05/0.2648, allocations: 31.75 kB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.265, allocations: 50.75 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.265, allocations: 0 / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.265, allocations: 4 kB / 410.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.265, allocations: 0 / 410.7 MB, free: 15.6 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.0005024/0.2655, allocations: 387 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2656, allocations: 12.03 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.2656, allocations: 38.73 kB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.301e-05/0.2656, allocations: 8.891 kB / 411.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.2659, allocations: 206.4 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.2659, allocations: 384 / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.2659, allocations: 8.312 kB / 411.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.2662, allocations: 122.5 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2663, allocations: 3.938 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.2663, allocations: 0 / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.687e-05/0.2663, allocations: 4 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.2664, allocations: 39.89 kB / 411.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004315/0.2669, allocations: 373.9 kB / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.267, allocations: 75.78 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.709e-05/0.2671, allocations: 42.62 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.2671, allocations: 0 / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.2672, allocations: 42.5 kB / 412 MB, free: 14.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.2672, allocations: 0 / 412 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003383/0.2675, allocations: 113.7 kB / 412.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.2676, allocations: 102.8 kB / 412.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.2677, allocations: 148.6 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.2677, allocations: 25.7 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.2678, allocations: 92.06 kB / 412.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.2678, allocations: 11.94 kB / 412.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/0.2679, allocations: 17.91 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.268, allocations: 322.8 kB / 412.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.962e-05/0.268, allocations: 11.98 kB / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-05/0.2681, allocations: 47.34 kB / 412.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.2683, allocations: 63.34 kB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2683, allocations: 0 / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001593/0.2684, allocations: 81.5 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2685, allocations: 7.125 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2685, allocations: 12.11 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2685, allocations: 0 / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.919e-05/0.2686, allocations: 8 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2686, allocations: 0 / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.529e-05/0.2687, allocations: 11.98 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.2687, allocations: 4 kB / 413.1 MB, free: 12.89 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.0001108/0.2688, allocations: 129.7 kB / 413.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.364e-05/0.2689, allocations: 49.64 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.2689, allocations: 19.84 kB / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.2689, allocations: 4 kB / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.2689, allocations: 0 / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2689, allocations: 4 kB / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.2692, allocations: 177.5 kB / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2692, allocations: 4 kB / 413.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-05/0.2692, allocations: 11.98 kB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2692, allocations: 0 / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.2692, allocations: 0 / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2693, allocations: 0 / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2693, allocations: 8 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002211/0.2695, allocations: 267.5 kB / 413.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.2696, allocations: 93.05 kB / 413.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.2696, allocations: 0 / 413.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.2697, allocations: 15.92 kB / 413.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.2697, allocations: 4 kB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.2697, allocations: 0 / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.795e-05/0.2698, allocations: 111.2 kB / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2698, allocations: 0 / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002649/0.2701, allocations: 11.94 kB / 414 MB, free: 11.89 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.0005182/0.2706, allocations: 0.7984 MB / 414.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.2708, allocations: 48.08 kB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2708, allocations: 4.062 kB / 414.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.207e-05/0.2709, allocations: 19.98 kB / 414.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.2713, allocations: 27.38 kB / 414.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2727, allocations: 1.49 MB / 416.4 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002505/0.273, allocations: 0.6924 MB / 417.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.054e-05/0.273, allocations: 12.02 kB / 417.1 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.34e-05/0.2731, allocations: 19.44 kB / 417.1 MB, free: 8.617 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2731, allocations: 0 / 417.1 MB, free: 8.617 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.2909, allocations: 1.727 MB / 418.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/7.989, allocations: 1.938 kB / 418.8 MB, free: 7.039 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.0.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]