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.001552/0.001553, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 63.2 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1325, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003462/0.136, allocations: 1.628 MB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1372, allocations: 0.5803 MB / 359.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1373, allocations: 0 / 359.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.409e-05/0.1374, allocations: 11.88 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.1376, allocations: 15.86 kB / 359.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003609/0.1379, allocations: 63.75 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.1381, allocations: 55.84 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.1382, allocations: 32.14 kB / 360 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1383, allocations: 27.86 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.081e-05/0.1384, allocations: 27.86 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.1384, allocations: 4 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.14e-05/0.1385, allocations: 11.98 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.662e-05/0.1385, allocations: 15.92 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.1386, allocations: 35.73 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.1387, allocations: 71.73 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1387, allocations: 0 / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1387, allocations: 0 / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1388, allocations: 0 / 360.2 MB, free: 11.39 MB / 302.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.0004957/0.1393, allocations: 399.2 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1393, allocations: 12.03 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/0.1393, allocations: 30.75 kB / 360.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.1395, allocations: 20.83 kB / 360.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.1397, allocations: 215.3 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.1397, allocations: 4.375 kB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.195e-05/0.1398, allocations: 4.375 kB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.1401, allocations: 146.7 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1401, allocations: 3.938 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.1401, allocations: 4 kB / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.1401, allocations: 0 / 361 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.706e-05/0.1402, allocations: 27.92 kB / 361 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003679/0.1406, allocations: 299.4 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.1407, allocations: 98.41 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.988e-05/0.1408, allocations: 43.48 kB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1408, allocations: 7.938 kB / 361.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.1409, allocations: 34.56 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.1409, allocations: 4 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003134/0.1412, allocations: 101.4 kB / 361.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.882e-05/0.1413, allocations: 136.5 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.1415, allocations: 142.8 kB / 361.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1415, allocations: 33.7 kB / 361.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.1416, allocations: 92.14 kB / 362 MB, free: 9.281 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.1416, allocations: 7.984 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.1416, allocations: 21.62 kB / 362 MB, free: 9.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1418, allocations: 322.8 kB / 362.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.565e-05/0.1418, allocations: 8 kB / 362.3 MB, free: 8.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.638e-05/0.1419, allocations: 53.08 kB / 362.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.142, allocations: 65.08 kB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.142, allocations: 4 kB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001669/0.1422, allocations: 85.45 kB / 362.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1422, allocations: 4 kB / 362.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1422, allocations: 0 / 362.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1423, allocations: 4 kB / 362.5 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.441e-05/0.1423, allocations: 11.98 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.1424, allocations: 7.938 kB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.1424, allocations: 12.19 kB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1424, allocations: 0 / 362.6 MB, free: 8.629 MB / 302.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 9.547e-05/0.1425, allocations: 134.7 kB / 362.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1426, allocations: 65.53 kB / 362.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.1427, allocations: 15.83 kB / 362.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1427, allocations: 4 kB / 362.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1427, allocations: 0 / 362.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1427, allocations: 4.031 kB / 362.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.1429, allocations: 185.6 kB / 363 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1429, allocations: 0 / 363 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.052e-05/0.143, allocations: 11.98 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.143, allocations: 7.938 kB / 363 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.143, allocations: 4 kB / 363 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.143, allocations: 7.938 kB / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.143, allocations: 0 / 363 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.1433, allocations: 194.1 kB / 363.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.1434, allocations: 101 kB / 363.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.1434, allocations: 8 kB / 363.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.404e-05/0.1435, allocations: 4 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.047e-05/0.1435, allocations: 4 kB / 363.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.1435, allocations: 0 / 363.3 MB, free: 7.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.328e-05/0.1436, allocations: 126.3 kB / 363.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1436, allocations: 0 / 363.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.1438, allocations: 11.94 kB / 363.4 MB, free: 7.648 MB / 302.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.0005274/0.1444, allocations: 0.7305 MB / 364.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.1446, allocations: 43.86 kB / 364.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1446, allocations: 0 / 364.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.626e-05/0.1446, allocations: 7.984 kB / 364.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004469/0.1451, allocations: 36.66 kB / 364.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1467, allocations: 1.497 MB / 365.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.147, allocations: 0.6924 MB / 366.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.489e-05/0.147, allocations: 8.656 kB / 366.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.076e-05/0.1471, allocations: 23.44 kB / 366.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1471, allocations: 0 / 366.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.1674, allocations: 2.031 MB / 368.5 MB, free: 2.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.356/8.524, allocations: 4.062 kB / 368.5 MB, free: 2.488 MB / 302.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