Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_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.001416/0.001416, allocations: 199.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008612/0.0008612, allocations: 99.73 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.000264, allocations: 11.94 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2963, allocations: 51.29 MB / 408.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked): time 0.001444/0.2978, allocations: 1.312 MB / 409.4 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000676/0.2985, allocations: 497.9 kB / 409.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.754e-05/0.2986, allocations: 4 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.704e-05/0.2987, allocations: 3.938 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/0.2988, allocations: 20.59 kB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.299, allocations: 45.06 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.59e-05/0.2991, allocations: 51.78 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.2992, allocations: 13.72 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.2993, allocations: 25.05 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.2994, allocations: 31.83 kB / 410.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.2994, allocations: 4 kB / 410.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.22e-05/0.2995, allocations: 4.625 kB / 410.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.077e-05/0.2995, allocations: 15.92 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.2996, allocations: 50.2 kB / 410.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.468e-05/0.2997, allocations: 47.91 kB / 410.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2997, allocations: 1.125 kB / 410.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2997, allocations: 3.938 kB / 410.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.2997, allocations: 4 kB / 410.3 MB, free: 25.43 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.0004353/0.3001, allocations: 386.3 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3002, allocations: 12.03 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.472e-05/0.3002, allocations: 36.72 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.3004, allocations: 36.72 kB / 410.7 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3006, allocations: 205 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.3006, allocations: 4.375 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.3006, allocations: 4.375 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.3009, allocations: 138 kB / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3009, allocations: 0 / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.3009, allocations: 0 / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/0.3009, allocations: 4 kB / 411.1 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.3011, allocations: 43.91 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003825/0.3015, allocations: 381.9 kB / 411.5 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.3016, allocations: 87.77 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.697e-05/0.3017, allocations: 50.56 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.3017, allocations: 0 / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.3017, allocations: 38.56 kB / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.3017, allocations: 0 / 411.6 MB, free: 23.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003497/0.3021, allocations: 125.8 kB / 411.8 MB, free: 23.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.3021, allocations: 110.8 kB / 411.9 MB, free: 23.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.255e-05/0.3022, allocations: 150.1 kB / 412 MB, free: 23.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.3023, allocations: 29.7 kB / 412.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.498e-05/0.3023, allocations: 100 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.3023, allocations: 4 kB / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.3023, allocations: 0 / 412.2 MB, free: 23.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3024, allocations: 326.8 kB / 412.5 MB, free: 22.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.684e-05/0.3025, allocations: 19.98 kB / 412.5 MB, free: 22.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.514e-05/0.3026, allocations: 47.41 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.3027, allocations: 75.34 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3027, allocations: 0 / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001732/0.3029, allocations: 101.4 kB / 412.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.3029, allocations: 4 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.303, allocations: 4 kB / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.303, allocations: 0 / 412.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.198e-05/0.3031, allocations: 20.05 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3031, allocations: 4 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.365e-05/0.3031, allocations: 15.88 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3032, allocations: 7.984 kB / 412.8 MB, free: 22.61 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: 0 () * 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 6.5e-05/0.3032, allocations: 121.8 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.3033, allocations: 45.59 kB / 412.9 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.973e-05/0.3033, allocations: 11.88 kB / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.3034, allocations: 7.984 kB / 413 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3034, allocations: 4.031 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3034, allocations: 4 kB / 413 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.3036, allocations: 185.5 kB / 413.1 MB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.3036, allocations: 0 / 413.1 MB, free: 22.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.904e-05/0.3036, allocations: 11.94 kB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3036, allocations: 4 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.3037, allocations: 3.984 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3037, allocations: 0 / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3037, allocations: 0 / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002174/0.3039, allocations: 279.5 kB / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.304, allocations: 93 kB / 413.5 MB, free: 21.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.304, allocations: 4 kB / 413.5 MB, free: 21.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.3041, allocations: 15.98 kB / 413.5 MB, free: 21.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.903e-05/0.3041, allocations: 3.938 kB / 413.5 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.3041, allocations: 4 kB / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.336e-05/0.3042, allocations: 119.1 kB / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3042, allocations: 0 / 413.7 MB, free: 21.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002472/0.3045, allocations: 8 kB / 413.7 MB, free: 21.59 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: 0 () * 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.0003569/0.3048, allocations: 0.8062 MB / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.305, allocations: 59.91 kB / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.305, allocations: 0 / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.804e-05/0.3051, allocations: 32.22 kB / 414.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/0.3055, allocations: 26.31 kB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008395/0.3064, allocations: 0.6575 MB / 415.3 MB, free: 19.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.3065, allocations: 0.6971 MB / 416 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.3066, allocations: 19.44 kB / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3066, allocations: 0 / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.812/3.119, allocations: 1.189 MB / 417.2 MB, free: 17.98 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleVectorizedAndClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_SampleVectorizedAndClocked.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleVectorizedAndClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleVectorizedAndClocked/SampleVectorizedAndClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.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],sine1.amplitude,sine1.f,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,time