Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",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.001307/0.001307, allocations: 106.6 kB / 17.06 MB, free: 6.098 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.001245/0.001245, allocations: 193.4 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 40.08 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3225, allocations: 49.44 MB / 400.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.003114/0.3257, allocations: 1.689 MB / 401.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004663/0.3262, allocations: 167.3 kB / 402.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.337e-05/0.3263, allocations: 4 kB / 402.1 MB, free: 7.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.603e-05/0.3264, allocations: 11.81 kB / 402.1 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001471/0.3265, allocations: 15.92 kB / 402.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.3268, allocations: 43.83 kB / 402.2 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.3269, allocations: 47.91 kB / 402.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.3271, allocations: 35.97 kB / 402.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.172e-05/0.3271, allocations: 27.81 kB / 402.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.688e-05/0.3272, allocations: 23.84 kB / 402.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/0.3272, allocations: 4 kB / 402.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.486e-05/0.3272, allocations: 4 kB / 402.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.4e-05/0.3273, allocations: 15.94 kB / 402.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.483e-05/0.3273, allocations: 35.73 kB / 402.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.3275, allocations: 74.61 kB / 402.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3275, allocations: 0 / 402.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3275, allocations: 0 / 402.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.3275, allocations: 0 / 402.4 MB, free: 6.742 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005504/0.3281, allocations: 391 kB / 402.8 MB, free: 6.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3281, allocations: 12.02 kB / 402.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.3282, allocations: 38.75 kB / 402.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.3282, allocations: 12.84 kB / 402.9 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.3285, allocations: 200.2 kB / 403.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.3285, allocations: 12.31 kB / 403.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.3285, allocations: 8.312 kB / 403.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.3289, allocations: 166.1 kB / 403.3 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.3289, allocations: 4 kB / 403.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.3289, allocations: 8 kB / 403.3 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3289, allocations: 0 / 403.3 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.3291, allocations: 35.92 kB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.3295, allocations: 361.9 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.3298, allocations: 119.8 kB / 403.8 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3299, allocations: 54.69 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.3299, allocations: 8 kB / 403.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3299, allocations: 34.56 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.3299, allocations: 0 / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003495/0.3303, allocations: 129.6 kB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.3304, allocations: 110.8 kB / 404.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.3305, allocations: 144.6 kB / 404.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.3306, allocations: 25.7 kB / 404.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.451e-05/0.3306, allocations: 88.08 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.3306, allocations: 15.94 kB / 404.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-05/0.3307, allocations: 21.72 kB / 404.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3309, allocations: 322.8 kB / 404.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.182e-05/0.3309, allocations: 12 kB / 404.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.833e-05/0.331, allocations: 79.59 kB / 404.8 MB, free: 4.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.3312, allocations: 95.58 kB / 404.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3312, allocations: 4 kB / 404.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001886/0.3314, allocations: 105.4 kB / 405 MB, free: 3.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3314, allocations: 11.94 kB / 405 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3314, allocations: 3.984 kB / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3314, allocations: 4 kB / 405 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.3315, allocations: 19.98 kB / 405 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.3315, allocations: 4.25 kB / 405 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.844e-05/0.3316, allocations: 8 kB / 405.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.3316, allocations: 8.281 kB / 405.1 MB, free: 3.777 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.86e-05/0.3317, allocations: 125.8 kB / 405.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3318, allocations: 81.58 kB / 405.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.3319, allocations: 16.72 kB / 405.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.3319, allocations: 0 / 405.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3319, allocations: 4 kB / 405.3 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3319, allocations: 0 / 405.3 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.3322, allocations: 189.5 kB / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.3322, allocations: 3.984 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.985e-05/0.3323, allocations: 16 kB / 405.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3323, allocations: 8 kB / 405.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.3323, allocations: 4 kB / 405.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3323, allocations: 3.984 kB / 405.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3323, allocations: 4 kB / 405.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.3327, allocations: 312.3 kB / 405.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.3328, allocations: 101 kB / 405.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.3328, allocations: 4 kB / 405.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.887e-05/0.3329, allocations: 7.984 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.3329, allocations: 0 / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.333, allocations: 4 kB / 405.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.758e-05/0.333, allocations: 107.2 kB / 406 MB, free: 2.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.333, allocations: 0 / 406 MB, free: 2.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000287/0.3333, allocations: 19.95 kB / 406 MB, free: 2.676 MB / 318.1 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 (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.0006724/0.334, allocations: 0.8462 MB / 406.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001847/0.3342, allocations: 67.84 kB / 407 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3342, allocations: 0 / 407 MB, free: 1.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.294e-05/0.3343, allocations: 11.98 kB / 407 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.3347, allocations: 47.89 kB / 407 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.3364, allocations: 1.586 MB / 408.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.3368, allocations: 0.704 MB / 409.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.461e-05/0.3368, allocations: 4.672 kB / 409.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.162e-05/0.3369, allocations: 23.42 kB / 409.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3369, allocations: 0 / 409.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.3603, allocations: 1.87 MB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.393/8.753, allocations: 11.91 kB / 411.2 MB, free: 13.4 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches