Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.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.SampleVectorizedAndClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleVectorizedAndClocked",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.0009151/0.0009151, allocations: 171.4 kB / 16.76 MB, free: 4.902 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.17/1.17, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0007104/0.0007102, allocations: 97.34 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06299/0.06299, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004011/0.0004012, allocations: 19.98 kB / 392.2 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.0775, allocations: 50.29 MB / 442.5 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked): time 0.001413/0.07895, allocations: 1.298 MB / 443.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000696/0.07967, allocations: 0.5078 MB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.257e-05/0.07979, allocations: 4 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.73e-05/0.07989, allocations: 7.922 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.677e-05/0.07999, allocations: 23.8 kB / 444.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002536/0.08026, allocations: 39.89 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.08037, allocations: 55.78 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.08048, allocations: 19.98 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.0806, allocations: 27.86 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.08067, allocations: 23.86 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.0807, allocations: 0 / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.693e-05/0.08072, allocations: 4 kB / 444.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.008e-05/0.08077, allocations: 19.91 kB / 444.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.08081, allocations: 53.5 kB / 444.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.327e-05/0.08089, allocations: 39.92 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.08091, allocations: 4 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.08091, allocations: 0 / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.08092, allocations: 4 kB / 444.6 MB, free: 14.39 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.000443/0.08137, allocations: 387.3 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.08142, allocations: 12.03 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.195e-05/0.08146, allocations: 30.75 kB / 445 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.08149, allocations: 8.844 kB / 445.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.08167, allocations: 200.1 kB / 445.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.08168, allocations: 4.312 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.0817, allocations: 8.375 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.08201, allocations: 138 kB / 445.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.08204, allocations: 11.94 kB / 445.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.08205, allocations: 3.984 kB / 445.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.08208, allocations: 0 / 445.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.08222, allocations: 43.97 kB / 445.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000389/0.08261, allocations: 385.8 kB / 445.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.08274, allocations: 91.77 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.222e-05/0.08283, allocations: 38.62 kB / 446 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.08286, allocations: 8 kB / 446 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.08289, allocations: 34.56 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.08289, allocations: 0 / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003406/0.08324, allocations: 129.7 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.08329, allocations: 110.8 kB / 446.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.08339, allocations: 154.1 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.0834, allocations: 25.7 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.442e-05/0.08344, allocations: 96.12 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.08346, allocations: 7.906 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-06/0.08347, allocations: 0 / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.717e-05/0.08352, allocations: 322.8 kB / 446.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.534e-05/0.0836, allocations: 27.98 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.293e-05/0.08367, allocations: 47.36 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001297/0.0838, allocations: 71.34 kB / 447 MB, free: 11.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.08381, allocations: 4 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001723/0.08399, allocations: 101.4 kB / 447.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.08401, allocations: 4 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.08402, allocations: 0 / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.08404, allocations: 4 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.375e-05/0.08414, allocations: 11.98 kB / 447.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.08415, allocations: 4 kB / 447.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.56e-05/0.08422, allocations: 12.11 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.08423, allocations: 4 kB / 447.1 MB, free: 11.59 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.216e-05/0.0843, allocations: 121.6 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.395e-05/0.08438, allocations: 57.53 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.729e-05/0.08441, allocations: 15.83 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.08443, allocations: 11.92 kB / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.08444, allocations: 0 / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.08445, allocations: 0 / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.08462, allocations: 189.6 kB / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.08463, allocations: 0 / 447.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.08469, allocations: 8 kB / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.0847, allocations: 96 / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.08471, allocations: 15.95 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.08472, allocations: 0 / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.08473, allocations: 0 / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002192/0.08495, allocations: 283.4 kB / 447.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.08501, allocations: 93 kB / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.08503, allocations: 0 / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.08514, allocations: 15.98 kB / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.08519, allocations: 0 / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.0852, allocations: 4 kB / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.277e-05/0.08526, allocations: 119.1 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08526, allocations: 0 / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.08551, allocations: 11.94 kB / 448 MB, free: 10.56 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.0003761/0.08589, allocations: 0.8022 MB / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001811/0.08609, allocations: 67.89 kB / 448.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.0861, allocations: 0 / 448.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.298e-05/0.08616, allocations: 23.98 kB / 448.9 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.0866, allocations: 21.91 kB / 449 MB, free: 9.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008805/0.08749, allocations: 0.6647 MB / 449.6 MB, free: 8.875 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.08763, allocations: 0.7004 MB / 450.3 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.74e-05/0.08768, allocations: 19.5 kB / 450.3 MB, free: 8.133 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.08769, allocations: 0 / 450.3 MB, free: 8.133 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.357/2.444, allocations: 1.197 MB / 451.5 MB, free: 6.938 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleVectorizedAndClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleVectorizedAndClocked.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleVectorizedAndClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y[1],sample.y[2] Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.n,sample.u[1],sample.u[2],sample.y[1],sample.y[2],sine1.amplitude,sine1.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.freqHz,sine2.offset,sine2.phase,sine2.startTime,sine2.y,time