Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 59.81 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1354, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.003205/0.1386, allocations: 0.9361 MB / 358.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005196/0.1392, allocations: 107.7 kB / 358.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.1393, allocations: 4 kB / 358.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.433e-05/0.1394, allocations: 15.86 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.1396, allocations: 3.938 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.1399, allocations: 39.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.1401, allocations: 39.86 kB / 358.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.1402, allocations: 28.14 kB / 358.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.821e-05/0.1403, allocations: 15.94 kB / 358.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.557e-05/0.1403, allocations: 23.86 kB / 358.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.1403, allocations: 0 / 358.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.268e-05/0.1404, allocations: 4 kB / 358.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.1404, allocations: 15.92 kB / 358.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.86e-05/0.1405, allocations: 27.81 kB / 358.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.1407, allocations: 55.8 kB / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1407, allocations: 0 / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.959e-06/0.1407, allocations: 0 / 358.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.1407, allocations: 3.938 kB / 358.9 MB, free: 12.66 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005885/0.1413, allocations: 371.4 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.1414, allocations: 16.03 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.1415, allocations: 38.75 kB / 359.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.1415, allocations: 16.73 kB / 359.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.1417, allocations: 188.2 kB / 359.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.1418, allocations: 384 / 359.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.1418, allocations: 12.31 kB / 359.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/0.1421, allocations: 131.6 kB / 359.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1421, allocations: 0 / 359.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1421, allocations: 3.938 kB / 359.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1422, allocations: 7.984 kB / 359.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.741e-05/0.1422, allocations: 15.98 kB / 359.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001975/0.1424, allocations: 173.5 kB / 359.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.1426, allocations: 70.73 kB / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.932e-05/0.1427, allocations: 44.8 kB / 360 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.1427, allocations: 3.984 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1427, allocations: 34.5 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.1427, allocations: 0 / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002538/0.143, allocations: 85.83 kB / 360.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.1431, allocations: 63.47 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.1432, allocations: 129.8 kB / 360.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1433, allocations: 29.7 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.493e-05/0.1433, allocations: 88.14 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.1433, allocations: 3.984 kB / 360.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.1434, allocations: 21.72 kB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1436, allocations: 322.8 kB / 360.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.85e-05/0.1436, allocations: 12 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.186e-05/0.1437, allocations: 58.86 kB / 360.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.317e-05/0.1437, allocations: 70.75 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.1438, allocations: 4 kB / 360.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001601/0.1439, allocations: 89.41 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.144, allocations: 10.8 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.144, allocations: 8.188 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.144, allocations: 4 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.441e-05/0.1441, allocations: 16 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1441, allocations: 0 / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.74e-05/0.1442, allocations: 7.906 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.1442, allocations: 4 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001442/0.1443, allocations: 134.8 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1444, allocations: 77.67 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.1445, allocations: 12.72 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1445, allocations: 0 / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1445, allocations: 4.188 kB / 361.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1445, allocations: 3.938 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1447, allocations: 177.5 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1447, allocations: 0 / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.596e-05/0.1447, allocations: 15.94 kB / 361.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1447, allocations: 4 kB / 361.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.1448, allocations: 4 kB / 361.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.1448, allocations: 0 / 361.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1448, allocations: 3.938 kB / 361.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/0.1449, allocations: 101 kB / 361.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.145, allocations: 96.94 kB / 361.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.1451, allocations: 3.984 kB / 361.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.156e-05/0.1451, allocations: 4 kB / 361.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.202e-06/0.1451, allocations: 0 / 361.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1451, allocations: 0 / 361.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.487e-05/0.1452, allocations: 103.3 kB / 361.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1452, allocations: 0 / 361.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.1454, allocations: 12 kB / 361.8 MB, free: 9.422 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0005899/0.146, allocations: 0.6592 MB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001403/0.1462, allocations: 47.91 kB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1462, allocations: 0.5625 kB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.1462, allocations: 4 kB / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.1466, allocations: 43.95 kB / 362.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.148, allocations: 1.33 MB / 363.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.1485, allocations: 0.7002 MB / 364.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.784e-05/0.1486, allocations: 7.953 kB / 364.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.1486, allocations: 19.42 kB / 364.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1486, allocations: 0 / 364.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.1699, allocations: 1.695 MB / 366.3 MB, free: 4.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.439, allocations: 13.45 kB / 366.3 MB, free: 4.812 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_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_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches