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.002049/0.002049, allocations: 105.2 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.002658/0.002658, allocations: 195 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.521/2.521, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5074/0.5096, allocations: 49.45 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.005046/0.5147, allocations: 1.606 MB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.5162, allocations: 0.5067 MB / 402.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.5164, allocations: 3.938 kB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.288e-05/0.5166, allocations: 15.86 kB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.5168, allocations: 7.875 kB / 402.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.5173, allocations: 59.83 kB / 402.4 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.5175, allocations: 63.7 kB / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000172/0.5177, allocations: 19.98 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.5178, allocations: 23.86 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.5179, allocations: 31.84 kB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.518, allocations: 4 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.377e-05/0.518, allocations: 4 kB / 402.6 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.5182, allocations: 19.92 kB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.945e-05/0.5182, allocations: 31.75 kB / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.5185, allocations: 71.67 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.5185, allocations: 0 / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5186, allocations: 0 / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.5186, allocations: 0 / 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.0007993/0.5194, allocations: 384.8 kB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.569e-05/0.5195, allocations: 8.031 kB / 403.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.436e-05/0.5196, allocations: 38.69 kB / 403.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.299e-05/0.5196, allocations: 20.83 kB / 403.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.5201, allocations: 200.1 kB / 403.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.5202, allocations: 4.359 kB / 403.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.5202, allocations: 8.375 kB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004602/0.5207, allocations: 142.8 kB / 403.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.5207, allocations: 0 / 403.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.5207, allocations: 0 / 403.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.5207, allocations: 4 kB / 403.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.5209, allocations: 27.91 kB / 403.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005046/0.5214, allocations: 299.3 kB / 403.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.5216, allocations: 98.42 kB / 403.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.5217, allocations: 47.44 kB / 404 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.5218, allocations: 3.984 kB / 404 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/0.5218, allocations: 38.5 kB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.733e-06/0.5218, allocations: 0 / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004438/0.5223, allocations: 101.5 kB / 404.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.5224, allocations: 140.4 kB / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.5227, allocations: 152 kB / 404.4 MB, free: 4.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.5227, allocations: 26.2 kB / 404.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.5228, allocations: 96.14 kB / 404.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.5228, allocations: 0 / 404.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.453e-05/0.5229, allocations: 29.61 kB / 404.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.5231, allocations: 322.7 kB / 404.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.045e-05/0.5232, allocations: 11.98 kB / 404.9 MB, free: 3.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.609e-05/0.5233, allocations: 49.14 kB / 404.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.5235, allocations: 65.02 kB / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5235, allocations: 4 kB / 405 MB, free: 3.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000263/0.5238, allocations: 85.45 kB / 405.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.5238, allocations: 8 kB / 405.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.5238, allocations: 3.984 kB / 405.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.5239, allocations: 4 kB / 405.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.524, allocations: 12 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.524, allocations: 7.984 kB / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.97e-05/0.5241, allocations: 192 / 405.1 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.5242, allocations: 8 kB / 405.1 MB, free: 3.594 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.0001356/0.5243, allocations: 121.8 kB / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.5245, allocations: 65.53 kB / 405.3 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.5245, allocations: 19.8 kB / 405.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.5246, allocations: 0 / 405.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5246, allocations: 4 kB / 405.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5246, allocations: 0 / 405.3 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.5249, allocations: 177.7 kB / 405.5 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5249, allocations: 4 kB / 405.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.525, allocations: 16 kB / 405.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.525, allocations: 0 / 405.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.5251, allocations: 7.984 kB / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.5251, allocations: 0 / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5251, allocations: 0 / 405.5 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.5254, allocations: 202 kB / 405.7 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.5255, allocations: 100.9 kB / 405.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.5256, allocations: 4 kB / 405.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.5257, allocations: 8 kB / 405.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.5258, allocations: 3.984 kB / 405.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.5258, allocations: 4 kB / 405.8 MB, free: 2.758 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.526, allocations: 114.1 kB / 405.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.526, allocations: 4 kB / 405.9 MB, free: 2.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.5264, allocations: 12 kB / 406 MB, free: 2.633 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.0007809/0.5272, allocations: 0.7342 MB / 406.7 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.5276, allocations: 47.84 kB / 406.7 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5276, allocations: 0 / 406.7 MB, free: 1.816 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.847e-05/0.5277, allocations: 8 kB / 406.7 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000686/0.5284, allocations: 40.55 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.002259/0.5306, allocations: 1.483 MB / 408.3 MB, free: 168 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.5311, allocations: 0.7078 MB / 409 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.055e-05/0.5312, allocations: 4.672 kB / 409 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.017e-05/0.5312, allocations: 23.42 kB / 409 MB, free: 15.4 MB / 334.1 MB Notification: Performance of SimCode: time 4.418e-06/0.5313, allocations: 0 / 409 MB, free: 15.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.6383, allocations: 2.061 MB / 411.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/12.11, allocations: 15.67 kB / 411.1 MB, free: 13.44 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