Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001241/0.001241, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 197.2 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3465, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003761/0.3503, allocations: 1.634 MB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.3517, allocations: 0.5804 MB / 411 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.3519, allocations: 7.938 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.997e-05/0.352, allocations: 3.938 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.3522, allocations: 19.8 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.3526, allocations: 59.81 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000151/0.3528, allocations: 59.78 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.3529, allocations: 28.16 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3531, allocations: 27.92 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.039e-05/0.3532, allocations: 23.84 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.889e-05/0.3532, allocations: 4 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.3533, allocations: 12 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.537e-05/0.3533, allocations: 15.92 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.699e-05/0.3534, allocations: 31.75 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.3536, allocations: 78.55 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3536, allocations: 0 / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3536, allocations: 0 / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3536, allocations: 4 kB / 411.3 MB, free: 14.96 MB / 334.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.0005954/0.3542, allocations: 391 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.3543, allocations: 12.03 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.3543, allocations: 30.75 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.3545, allocations: 24.83 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.3549, allocations: 220 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.3549, allocations: 8.375 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.355, allocations: 4.375 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.3553, allocations: 134.9 kB / 412.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.3553, allocations: 0 / 412.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.3554, allocations: 8 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3554, allocations: 3.938 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.241e-05/0.3555, allocations: 27.92 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.3559, allocations: 291.3 kB / 412.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.3561, allocations: 94.42 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.35e-05/0.3562, allocations: 43.48 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.3562, allocations: 4 kB / 412.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.3563, allocations: 42.48 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.3563, allocations: 4 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003716/0.3567, allocations: 94.03 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.77e-05/0.3568, allocations: 140.5 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.357, allocations: 147.7 kB / 413 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.357, allocations: 29.7 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.065e-05/0.3571, allocations: 96.12 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3571, allocations: 3.953 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.508e-05/0.3572, allocations: 21.72 kB / 413.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3573, allocations: 326.8 kB / 413.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.804e-05/0.3574, allocations: 11.98 kB / 413.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.187e-05/0.3575, allocations: 45.16 kB / 413.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.3576, allocations: 73 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3576, allocations: 4 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001802/0.3578, allocations: 81.69 kB / 413.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3578, allocations: 12 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.3579, allocations: 0 / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.3579, allocations: 4 kB / 413.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.476e-05/0.358, allocations: 8 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.358, allocations: 4 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.3581, allocations: 11.92 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3581, allocations: 4 kB / 413.8 MB, free: 12.2 MB / 334.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.0001249/0.3582, allocations: 133.6 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3583, allocations: 73.53 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.3584, allocations: 19.81 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3584, allocations: 0 / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3584, allocations: 4 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3584, allocations: 0 / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.3586, allocations: 177.6 kB / 414.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3587, allocations: 4 kB / 414.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.243e-05/0.3587, allocations: 11.98 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3588, allocations: 0 / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.3588, allocations: 16.08 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3588, allocations: 0 / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3588, allocations: 4 kB / 414.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.3591, allocations: 190 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/0.3592, allocations: 105 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.3592, allocations: 0 / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.89e-05/0.3593, allocations: 8 kB / 414.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.3593, allocations: 0 / 414.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.3593, allocations: 8.172 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.465e-05/0.3594, allocations: 114.3 kB / 414.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3594, allocations: 0 / 414.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.3597, allocations: 12 kB / 414.6 MB, free: 11.22 MB / 334.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.0006316/0.3603, allocations: 0.7383 MB / 415.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.3606, allocations: 52.03 kB / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3606, allocations: 0 / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.037e-05/0.3606, allocations: 7.938 kB / 415.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.3611, allocations: 41.88 kB / 415.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.3628, allocations: 1.506 MB / 417 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3631, allocations: 0.6963 MB / 417.7 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.399e-05/0.3631, allocations: 8.656 kB / 417.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.446e-05/0.3632, allocations: 23.44 kB / 417.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3632, allocations: 3.938 kB / 417.7 MB, free: 7.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.3868, allocations: 2.064 MB / 419.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.093/8.48, allocations: 64 / 419.8 MB, free: 6.016 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.csv","/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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches