Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UniformNoise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007595/0.0007596, allocations: 174 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.199/1.199, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007385/0.0007384, allocations: 93.42 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06668/0.06668, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004527, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07604/0.07651, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise): time 0.001066/0.07764, allocations: 0.5832 MB / 443.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000551/0.07822, allocations: 259.3 kB / 443.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.07836, allocations: 0 / 443.3 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.749e-05/0.07841, allocations: 7.938 kB / 443.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.07858, allocations: 11.92 kB / 443.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004457/0.07903, allocations: 87.8 kB / 443.4 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001077/0.07915, allocations: 43.84 kB / 443.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.07926, allocations: 15.98 kB / 443.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.541e-05/0.07933, allocations: 23.86 kB / 443.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.07941, allocations: 23.86 kB / 443.5 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.07944, allocations: 0 / 443.5 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.07953, allocations: 35.97 kB / 443.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.02e-05/0.07959, allocations: 23.91 kB / 443.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.025e-05/0.07963, allocations: 49.5 kB / 443.6 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.07975, allocations: 59.89 kB / 443.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.07976, allocations: 0 / 443.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.07977, allocations: 4 kB / 443.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.07977, allocations: 0 / 443.7 MB, free: 15.34 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004161/0.0802, allocations: 375.5 kB / 444.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.08025, allocations: 8.031 kB / 444.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.08029, allocations: 38.75 kB / 444.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.08033, allocations: 8.844 kB / 444.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.08051, allocations: 204 kB / 444.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.08053, allocations: 384 / 444.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.08054, allocations: 12.31 kB / 444.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.08083, allocations: 157.6 kB / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.08085, allocations: 3.938 kB / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.08087, allocations: 0 / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.08088, allocations: 0 / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.412e-05/0.08092, allocations: 23.94 kB / 444.5 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002408/0.08117, allocations: 281.6 kB / 444.8 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.882e-05/0.08125, allocations: 46.5 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.232e-05/0.08129, allocations: 24.8 kB / 444.9 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004777/0.08177, allocations: 0.5818 MB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.806e-05/0.0818, allocations: 34.56 kB / 445.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.08181, allocations: 0 / 445.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001751/0.08199, allocations: 89.64 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.08203, allocations: 55.41 kB / 445.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9e-05/0.08212, allocations: 153.7 kB / 445.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.08214, allocations: 25.7 kB / 445.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.414e-05/0.08217, allocations: 92.08 kB / 445.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.486e-05/0.08219, allocations: 7.906 kB / 445.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.0822, allocations: 7.938 kB / 445.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.549e-05/0.08225, allocations: 330.8 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.466e-05/0.08228, allocations: 15.98 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.752e-05/0.08232, allocations: 62 kB / 446.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.059e-05/0.08239, allocations: 81.88 kB / 446.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.0824, allocations: 0 / 446.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001261/0.08253, allocations: 113.5 kB / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.08255, allocations: 4 kB / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.08256, allocations: 4 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.08258, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.667e-05/0.08266, allocations: 23.98 kB / 446.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.08267, allocations: 3.938 kB / 446.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.492e-05/0.08271, allocations: 11.88 kB / 446.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.08273, allocations: 7.938 kB / 446.6 MB, free: 12.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (uniformNoise.seedState[3],$CLKPRE.uniformNoise.seedState[3],uniformNoise.seedState[2],$CLKPRE.uniformNoise.seedState[2],uniformNoise.seedState[1],$CLKPRE.uniformNoise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (uniformNoise.seedState[3],uniformNoise.seedState[2],uniformNoise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 7.7e-05/0.08281, allocations: 138.6 kB / 446.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.275e-05/0.08289, allocations: 69.5 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.08302, allocations: 86.56 kB / 446.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.08304, allocations: 4 kB / 446.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.08304, allocations: 0 / 446.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.08305, allocations: 0 / 446.8 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.008e-05/0.08312, allocations: 173.6 kB / 447 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.08313, allocations: 4 kB / 447 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.271e-05/0.08316, allocations: 4 kB / 447 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.08317, allocations: 0 / 447 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.08318, allocations: 4 kB / 447 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.08319, allocations: 3.984 kB / 447 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.0832, allocations: 0 / 447 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.177e-05/0.08329, allocations: 108.9 kB / 447.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.369e-05/0.08334, allocations: 97.19 kB / 447.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.08337, allocations: 192 / 447.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.33e-05/0.0834, allocations: 3.984 kB / 447.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-06/0.08341, allocations: 7.938 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.08342, allocations: 7.984 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.002e-05/0.08348, allocations: 115.2 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08348, allocations: 0 / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.08369, allocations: 19.98 kB / 447.4 MB, free: 11.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003192/0.08401, allocations: 0.6707 MB / 448.1 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.08412, allocations: 51.95 kB / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.08413, allocations: 0 / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.08414, allocations: 0 / 448.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.08446, allocations: 85.64 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006326/0.0851, allocations: 0.6326 MB / 448.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.08522, allocations: 0.7004 MB / 449.5 MB, free: 8.859 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.08526, allocations: 23.42 kB / 449.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.08527, allocations: 0 / 449.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.377/2.462, allocations: 1.5 MB / 451 MB, free: 7.34 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UniformNoise_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_UniformNoise.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,uniformNoise.y Variables in the result:const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(uniformNoise.seedState[1]),previous(uniformNoise.seedState[2]),previous(uniformNoise.seedState[3]),sample.u,sample.y,time,uniformNoise.firstSeed[1],uniformNoise.firstSeed[2],uniformNoise.firstSeed[3],uniformNoise.noise,uniformNoise.noiseMax,uniformNoise.noiseMin,uniformNoise.seedState[1],uniformNoise.seedState[2],uniformNoise.seedState[3],uniformNoise.u,uniformNoise.y