Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3",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.0008362/0.0008362, allocations: 178.1 kB / 16.77 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.181/1.181, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0008057/0.0008057, allocations: 85.5 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06536/0.06536, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003705/0.0003706, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06593/0.06632, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.001492/0.06785, allocations: 1.373 MB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003652/0.06823, allocations: 183.4 kB / 444.1 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.235e-05/0.06835, allocations: 3.938 kB / 444.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.447e-05/0.06839, allocations: 7.922 kB / 444.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.06852, allocations: 4 kB / 444.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.06874, allocations: 39.91 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.703e-05/0.06884, allocations: 51.84 kB / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.397e-05/0.06894, allocations: 31.97 kB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.283e-05/0.069, allocations: 23.86 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.436e-05/0.06905, allocations: 19.86 kB / 444.2 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.06907, allocations: 4 kB / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.06908, allocations: 0 / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.935e-05/0.06912, allocations: 11.94 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.06916, allocations: 61.42 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.168e-05/0.06923, allocations: 35.94 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.06924, allocations: 4 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.06924, allocations: 0 / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.06925, allocations: 0 / 444.3 MB, free: 14.69 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003305/0.06958, allocations: 379.5 kB / 444.7 MB, free: 14.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.06962, allocations: 8.031 kB / 444.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.828e-05/0.06966, allocations: 42.73 kB / 444.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.525e-05/0.06969, allocations: 8.844 kB / 444.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.06984, allocations: 196.7 kB / 445 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-06/0.06985, allocations: 12.31 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.06987, allocations: 8.375 kB / 445 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.07017, allocations: 170.3 kB / 445.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.07019, allocations: 7.938 kB / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.0702, allocations: 4 kB / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.07021, allocations: 0 / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.72e-05/0.07031, allocations: 35.98 kB / 445.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002708/0.07059, allocations: 377.7 kB / 445.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000183/0.07079, allocations: 111.9 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.817e-05/0.07087, allocations: 58.62 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.0709, allocations: 4.141 kB / 445.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.419e-05/0.07092, allocations: 42.5 kB / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.07093, allocations: 0 / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002711/0.07121, allocations: 125.5 kB / 445.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.07126, allocations: 110.8 kB / 446 MB, free: 12.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.431e-05/0.07134, allocations: 139.7 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.183e-06/0.07135, allocations: 25.7 kB / 446.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.679e-05/0.07139, allocations: 92.05 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.0714, allocations: 8 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.07141, allocations: 256 / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.07147, allocations: 334.7 kB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.257e-05/0.07152, allocations: 15.98 kB / 446.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.137e-05/0.07158, allocations: 71.72 kB / 446.7 MB, free: 12.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.742e-05/0.07168, allocations: 95.59 kB / 446.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.07169, allocations: 0 / 446.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001531/0.07185, allocations: 121.7 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.07187, allocations: 4 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.07188, allocations: 7.938 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.0719, allocations: 4 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-05/0.07197, allocations: 19.94 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.07198, allocations: 3.984 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.07203, allocations: 15.84 kB / 446.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.07204, allocations: 11.94 kB / 447 MB, free: 11.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (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 5.753e-05/0.0721, allocations: 133.7 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.72e-05/0.07221, allocations: 73.53 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.928e-05/0.07224, allocations: 16.7 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.07225, allocations: 3.984 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.07226, allocations: 4 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.07227, allocations: 0 / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.07244, allocations: 185.6 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.07245, allocations: 0 / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.662e-05/0.07252, allocations: 19.98 kB / 447.4 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.07253, allocations: 8 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.07254, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.07255, allocations: 4 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.07255, allocations: 400 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.0728, allocations: 320.2 kB / 447.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.842e-05/0.07285, allocations: 104.9 kB / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.07287, allocations: 0 / 447.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.915e-05/0.07296, allocations: 8 kB / 447.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.07299, allocations: 0 / 447.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.073, allocations: 4 kB / 447.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.538e-05/0.07305, allocations: 113.8 kB / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07306, allocations: 0 / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.07331, allocations: 16 kB / 448 MB, free: 10.63 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 (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 Backend phase and start with SimCode phase: time 0.0003588/0.07368, allocations: 0.8461 MB / 448.8 MB, free: 9.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.07383, allocations: 67.77 kB / 448.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.07384, allocations: 4 kB / 448.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.581e-05/0.07388, allocations: 20.56 kB / 448.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.0743, allocations: 36.94 kB / 448.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007374/0.07505, allocations: 0.632 MB / 449.6 MB, free: 8.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.07517, allocations: 0.7043 MB / 450.3 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.07522, allocations: 23.44 kB / 450.3 MB, free: 8.156 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.07522, allocations: 0 / 450.3 MB, free: 8.156 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.323/2.398, allocations: 1.149 MB / 451.4 MB, free: 7.008 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,feedback.y,hold.y,sample1.y,sample2.y Variables in the result:feedback.u1,feedback.u2,feedback.y,gain.k,gain.u,gain.y,hold.u,hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,sample2.u,sample2.y,step.height,step.offset,step.startTime,step.y,time