Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 226.5 MB / 244.7 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007917/0.0007917, allocations: 101.8 kB / 296.7 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002693, allocations: 8 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2035, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.001339/0.2049, allocations: 1.238 MB / 409.4 MB, free: 26.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002619/0.2051, allocations: 137.7 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.665e-05/0.2052, allocations: 0 / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.811e-05/0.2053, allocations: 7.922 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.2054, allocations: 4 kB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.2057, allocations: 31.91 kB / 409.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.921e-05/0.2057, allocations: 43.84 kB / 409.6 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.361e-05/0.2058, allocations: 18.86 kB / 409.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.67e-05/0.2059, allocations: 7.938 kB / 409.6 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.01e-05/0.2059, allocations: 23.86 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.206, allocations: 1.281 kB / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.091e-05/0.206, allocations: 0 / 409.6 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.442e-05/0.206, allocations: 11.98 kB / 409.7 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.99e-05/0.206, allocations: 49.52 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.07e-05/0.2061, allocations: 32.45 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2061, allocations: 0.6875 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2061, allocations: 7.938 kB / 409.7 MB, free: 26.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.267e-06/0.2061, allocations: 1.812 kB / 409.7 MB, free: 26.1 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003621/0.2065, allocations: 384.4 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2065, allocations: 8.938 kB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.545e-05/0.2066, allocations: 30.75 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.2066, allocations: 9.938 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.2067, allocations: 198.3 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-06/0.2068, allocations: 3.875 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.2068, allocations: 4.375 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.207, allocations: 126.4 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.207, allocations: 5.062 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.207, allocations: 4 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.2071, allocations: 0 / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.2072, allocations: 52.89 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003436/0.2075, allocations: 377.9 kB / 410.9 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.2077, allocations: 83.78 kB / 411 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.53e-05/0.2077, allocations: 42.56 kB / 411 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.153e-05/0.2078, allocations: 4 kB / 411 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.2078, allocations: 38.55 kB / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.2078, allocations: 0 / 411.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003005/0.2081, allocations: 113.7 kB / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.2081, allocations: 110.8 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.19e-05/0.2082, allocations: 145.8 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.2082, allocations: 25.7 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.179e-05/0.2083, allocations: 96.22 kB / 411.6 MB, free: 24.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.325e-06/0.2083, allocations: 4 kB / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.2083, allocations: 4 kB / 411.6 MB, free: 24.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.606e-05/0.2083, allocations: 314.8 kB / 411.9 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.685e-05/0.2084, allocations: 19.98 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-05/0.2085, allocations: 51.41 kB / 412 MB, free: 23.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.2086, allocations: 71.28 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2086, allocations: 0 / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001504/0.2088, allocations: 89.52 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.2088, allocations: 4 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2088, allocations: 128 / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.2088, allocations: 8 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.561e-05/0.2089, allocations: 15.92 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.2089, allocations: 4 kB / 412.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.973e-05/0.2089, allocations: 11.94 kB / 412.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.209, allocations: 0 / 412.2 MB, free: 23.39 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.52e-05/0.2091, allocations: 129.7 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.245e-05/0.2091, allocations: 57.59 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.2092, allocations: 11.88 kB / 412.3 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.2092, allocations: 7.984 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2092, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2092, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001622/0.2094, allocations: 177.6 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2094, allocations: 4 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.336e-05/0.2094, allocations: 11.94 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2094, allocations: 3.984 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2095, allocations: 4.031 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2095, allocations: 0 / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2095, allocations: 4 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.2096, allocations: 279.5 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.2097, allocations: 92.94 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.206e-05/0.2097, allocations: 0 / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.639e-05/0.2098, allocations: 8 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.532e-05/0.2099, allocations: 11.92 kB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.2099, allocations: 0 / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.444e-05/0.2099, allocations: 110.2 kB / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2099, allocations: 0 / 413 MB, free: 22.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002406/0.2102, allocations: 8 kB / 413.1 MB, free: 22.38 MB / 298.7 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 (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 0.0003362/0.2105, allocations: 0.8062 MB / 413.9 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.2107, allocations: 55.91 kB / 413.9 MB, free: 21.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2107, allocations: 4.25 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.618e-05/0.2108, allocations: 19.92 kB / 413.9 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.2111, allocations: 25.64 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007301/0.2119, allocations: 0.5844 MB / 414.5 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/0.212, allocations: 0.6966 MB / 415.2 MB, free: 20.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.2121, allocations: 15.42 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2121, allocations: 0 / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.93/3.142, allocations: 1.074 MB / 416.3 MB, free: 18.98 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleVectorizedAndClocked/SampleVectorizedAndClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y[1],sample1.y[2] Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.n,sample1.u[1],sample1.u[2],sample1.y[1],sample1.y[2],step1.height,step1.offset,step1.startTime,step1.y,step2.height,step2.offset,step2.startTime,step2.y,time