Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SuperSample",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.000798/0.000798, allocations: 178.6 kB / 16.77 MB, free: 4.922 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.228/1.228, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0007193/0.0007193, allocations: 78.44 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.05931/0.05931, allocations: 12.21 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004144/0.0004145, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07392/0.07435, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample): time 0.001498/0.0759, allocations: 1.27 MB / 443.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.07667, allocations: 0.5 MB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.0768, allocations: 7.938 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.307e-05/0.07685, allocations: 0 / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.07697, allocations: 7.922 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.07723, allocations: 43.84 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.645e-05/0.07733, allocations: 51.77 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.178e-05/0.07743, allocations: 16.19 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.07754, allocations: 23.92 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.641e-05/0.0776, allocations: 23.84 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.07762, allocations: 7.938 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.303e-05/0.07764, allocations: 0 / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.664e-05/0.07768, allocations: 7.938 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.07772, allocations: 45.56 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.749e-05/0.0778, allocations: 39.94 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.07781, allocations: 0 / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.07782, allocations: 3.938 kB / 444.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.07782, allocations: 3.938 kB / 444.5 MB, free: 14.48 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003789/0.07821, allocations: 367.5 kB / 444.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.07826, allocations: 12.02 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.434e-05/0.0783, allocations: 42.75 kB / 445 MB, free: 14.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.07833, allocations: 8.844 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.07848, allocations: 192.1 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.0785, allocations: 8.375 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.07851, allocations: 384 / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.07876, allocations: 129.8 kB / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.07878, allocations: 0 / 445.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.07879, allocations: 4 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.0788, allocations: 7.938 kB / 445.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.898e-05/0.07889, allocations: 27.97 kB / 445.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002383/0.07913, allocations: 278.5 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.96e-05/0.07923, allocations: 75.78 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.238e-05/0.07929, allocations: 26.64 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.07932, allocations: 8 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.07934, allocations: 34.55 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.07934, allocations: 0 / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002385/0.07959, allocations: 93.8 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.07963, allocations: 110.8 kB / 445.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.829e-05/0.07974, allocations: 141.6 kB / 446.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.214e-06/0.07975, allocations: 25.7 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.085e-05/0.07979, allocations: 96.05 kB / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.0798, allocations: 0 / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.07981, allocations: 0 / 446.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.546e-05/0.07986, allocations: 326.8 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.006e-05/0.07991, allocations: 12 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.913e-05/0.07995, allocations: 35.42 kB / 446.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.834e-05/0.08004, allocations: 51.36 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.08005, allocations: 0 / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001161/0.08017, allocations: 81.45 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.08019, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.0802, allocations: 4.125 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.08022, allocations: 4 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.139e-05/0.08029, allocations: 8 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.08031, allocations: 7.938 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.975e-05/0.08035, allocations: 3.984 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.08036, allocations: 4 kB / 446.7 MB, free: 11.98 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 5.597e-05/0.08042, allocations: 122.4 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.08049, allocations: 57.53 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.08053, allocations: 19.89 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.08054, allocations: 4.078 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.08054, allocations: 0 / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.08055, allocations: 0 / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.08068, allocations: 177.6 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.08069, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.597e-05/0.08075, allocations: 11.94 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.08076, allocations: 4 kB / 447.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.08077, allocations: 0 / 447.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.08078, allocations: 7.922 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.08078, allocations: 4 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.08093, allocations: 181.1 kB / 447.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.08097, allocations: 93 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.08099, allocations: 4 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.635e-05/0.08106, allocations: 12 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.0811, allocations: 0 / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-06/0.08111, allocations: 4 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.705e-05/0.08116, allocations: 107.2 kB / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08117, allocations: 0 / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.08138, allocations: 4 kB / 447.5 MB, free: 11.08 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 (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 Backend phase and start with SimCode phase: time 0.0002897/0.08167, allocations: 0.7178 MB / 448.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.08181, allocations: 44.09 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.08182, allocations: 0 / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.08186, allocations: 8 kB / 448.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.08223, allocations: 33.78 kB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006575/0.0829, allocations: 0.5516 MB / 448.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.08303, allocations: 0.6926 MB / 449.6 MB, free: 8.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.766e-05/0.08308, allocations: 19.5 kB / 449.6 MB, free: 8.891 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08308, allocations: 3.938 kB / 449.6 MB, free: 8.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.309/2.392, allocations: 1.044 MB / 450.6 MB, free: 7.844 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SuperSample_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_SuperSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,superSample.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,superSample.factor,superSample.inferFactor,superSample.u,superSample.y,time