Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 104.7 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002843/0.002843, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.626/2.626, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.002091, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5724/0.5745, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003996/0.5786, allocations: 1.615 MB / 401.9 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.5798, allocations: 0.5015 MB / 402.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001542/0.58, allocations: 7.938 kB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.212e-05/0.5801, allocations: 7.922 kB / 402.4 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.5803, allocations: 19.86 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.5807, allocations: 51.33 kB / 402.4 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.5809, allocations: 63.72 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.5811, allocations: 15.98 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.5813, allocations: 35.84 kB / 402.6 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.5814, allocations: 27.86 kB / 402.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.5814, allocations: 0 / 402.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.645e-05/0.5814, allocations: 4 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.724e-05/0.5815, allocations: 19.92 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.952e-05/0.5815, allocations: 35.73 kB / 402.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.5817, allocations: 71.62 kB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.5818, allocations: 0 / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5818, allocations: 0 / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.5818, allocations: 3.984 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006383/0.5824, allocations: 388.7 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.5825, allocations: 12.03 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.86e-05/0.5825, allocations: 38.73 kB / 403.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.5826, allocations: 8.844 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.583, allocations: 204.1 kB / 403.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.583, allocations: 8.312 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.5831, allocations: 12.38 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003613/0.5834, allocations: 130.9 kB / 403.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5835, allocations: 0 / 403.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5835, allocations: 0 / 403.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.5835, allocations: 0 / 403.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.5836, allocations: 39.91 kB / 403.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000437/0.584, allocations: 295.2 kB / 403.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.5842, allocations: 94.42 kB / 403.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.253e-05/0.5843, allocations: 39.5 kB / 404 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.5843, allocations: 7.984 kB / 404 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.5844, allocations: 42.5 kB / 404 MB, free: 4.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.5844, allocations: 0 / 404 MB, free: 4.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003588/0.5848, allocations: 93.52 kB / 404.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.331e-05/0.5849, allocations: 144.9 kB / 404.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.585, allocations: 154.1 kB / 404.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.5851, allocations: 25.7 kB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.869e-05/0.5851, allocations: 88.14 kB / 404.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.5851, allocations: 11.92 kB / 404.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.5852, allocations: 25.61 kB / 404.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5853, allocations: 322.8 kB / 404.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.893e-05/0.5854, allocations: 11.98 kB / 404.9 MB, free: 3.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.287e-05/0.5855, allocations: 53.14 kB / 404.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.5856, allocations: 69.02 kB / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5856, allocations: 0 / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001691/0.5858, allocations: 85.45 kB / 405.1 MB, free: 3.641 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.5858, allocations: 4 kB / 405.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.5858, allocations: 7.938 kB / 405.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.5858, allocations: 4.188 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5859, allocations: 12 kB / 405.1 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.586, allocations: 3.984 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.689e-05/0.586, allocations: 4 kB / 405.1 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.586, allocations: 4 kB / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.5862, allocations: 121.7 kB / 405.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.5863, allocations: 65.66 kB / 405.3 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.5863, allocations: 19.95 kB / 405.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.5863, allocations: 8 kB / 405.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5864, allocations: 0 / 405.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.5864, allocations: 0 / 405.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.5866, allocations: 185.6 kB / 405.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5866, allocations: 3.984 kB / 405.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.55e-05/0.5867, allocations: 8 kB / 405.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.5867, allocations: 7.984 kB / 405.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.5867, allocations: 0 / 405.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.5867, allocations: 4 kB / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5867, allocations: 0 / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002241/0.5869, allocations: 201.9 kB / 405.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.11e-05/0.587, allocations: 100.8 kB / 405.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.5871, allocations: 4 kB / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.648e-05/0.5871, allocations: 0 / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.5872, allocations: 11.98 kB / 405.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.5872, allocations: 0 / 405.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.029e-05/0.5873, allocations: 118.1 kB / 405.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.5873, allocations: 0 / 405.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002768/0.5876, allocations: 11.94 kB / 406 MB, free: 2.637 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005346/0.5881, allocations: 0.7343 MB / 406.7 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001913/0.5883, allocations: 43.91 kB / 406.7 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5884, allocations: 384 / 406.7 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.074e-05/0.5884, allocations: 8 kB / 406.7 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.5889, allocations: 47.86 kB / 406.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.5906, allocations: 1.482 MB / 408.3 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.5909, allocations: 0.7078 MB / 409 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.946e-05/0.591, allocations: 4.672 kB / 409 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.5911, allocations: 23.42 kB / 409 MB, free: 15.4 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.5911, allocations: 0 / 409 MB, free: 15.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.6195, allocations: 2.056 MB / 411.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.04, allocations: 4.688 kB / 411.1 MB, free: 13.46 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches