Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.0008461/0.0008461, allocations: 175.3 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.198/1.198, 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.0006858/0.0006858, allocations: 93.3 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.06545/0.06545, allocations: 12.21 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003598, allocations: 23.98 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06776/0.06814, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001314/0.06949, allocations: 1.251 MB / 443.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006121/0.07013, allocations: 0.5 MB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.204e-05/0.07022, allocations: 0 / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.07025, allocations: 0 / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.07037, allocations: 7.938 kB / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.07059, allocations: 43.83 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.942e-05/0.07067, allocations: 43.84 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.971e-05/0.07076, allocations: 4 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.101e-05/0.07085, allocations: 27.86 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.661e-05/0.0709, allocations: 11.92 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.07092, allocations: 4 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.118e-05/0.07094, allocations: 0 / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.07098, allocations: 15.92 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.937e-05/0.07101, allocations: 45.56 kB / 444.4 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.021e-05/0.07108, allocations: 31.89 kB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.07109, allocations: 8 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.07109, allocations: 0 / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.0711, allocations: 0 / 444.5 MB, free: 14.54 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003309/0.07144, allocations: 359.5 kB / 444.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.07148, allocations: 8.031 kB / 444.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.409e-05/0.07151, allocations: 34.75 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.07154, allocations: 8.844 kB / 444.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.07169, allocations: 188.2 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.911e-06/0.07171, allocations: 4.375 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.07172, allocations: 4.375 kB / 445.1 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.07194, allocations: 105.1 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.07196, allocations: 0 / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.07197, allocations: 0 / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.07198, allocations: 8 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.944e-05/0.07205, allocations: 19.98 kB / 445.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002133/0.07228, allocations: 265.7 kB / 445.5 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.071e-05/0.07235, allocations: 45.2 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.217e-05/0.0724, allocations: 21.78 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.07242, allocations: 0 / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.442e-05/0.07244, allocations: 34.5 kB / 445.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 7.31e-07/0.07245, allocations: 4 kB / 445.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002044/0.07266, allocations: 77.52 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.0727, allocations: 81.11 kB / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.493e-05/0.07278, allocations: 144.1 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.354e-06/0.0728, allocations: 25.7 kB / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.696e-05/0.07283, allocations: 84.39 kB / 446 MB, free: 12.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.07285, allocations: 7.938 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.07285, allocations: 0 / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.115e-05/0.0729, allocations: 322.8 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.465e-05/0.07294, allocations: 7.984 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.222e-05/0.07298, allocations: 21.7 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.479e-05/0.07305, allocations: 37.72 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.07306, allocations: 3.938 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.968e-05/0.07316, allocations: 61.58 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.07318, allocations: 4 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.07319, allocations: 12.06 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.07321, allocations: 0 / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.019e-05/0.07327, allocations: 4 kB / 446.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.07328, allocations: 3.938 kB / 446.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.312e-05/0.07332, allocations: 7.984 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.07333, allocations: 0 / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 5.026e-05/0.07339, allocations: 126.4 kB / 446.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.07344, allocations: 37.59 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.429e-05/0.07347, allocations: 19.86 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.07348, allocations: 3.984 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.07348, allocations: 0 / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.07349, allocations: 4 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.0736, allocations: 169.6 kB / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.07361, allocations: 0 / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.317e-05/0.07366, allocations: 7.984 kB / 446.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.07367, allocations: 4 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.07368, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.07368, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.07369, allocations: 7.938 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.07381, allocations: 160.3 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.07385, allocations: 89 kB / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.07387, allocations: 0 / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.282e-05/0.07394, allocations: 12.02 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.737e-05/0.07397, allocations: 0 / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.07398, allocations: 3.938 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.465e-05/0.07403, allocations: 110.1 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07404, allocations: 0 / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001973/0.07424, allocations: 4 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0002462/0.07449, allocations: 0.6936 MB / 447.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.0746, allocations: 23.98 kB / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.07461, allocations: 160 / 447.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.59e-05/0.07465, allocations: 23.92 kB / 447.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.07496, allocations: 19.95 kB / 448 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005902/0.07556, allocations: 0.5016 MB / 448.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.07569, allocations: 0.6848 MB / 449.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.07573, allocations: 23.36 kB / 449.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.07574, allocations: 4 kB / 449.2 MB, free: 9.367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.289/2.365, allocations: 0.8943 MB / 450.1 MB, free: 8.473 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time