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.001308/0.001308, 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.001304/0.001304, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.314, allocations: 50.53 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.00261/0.3166, allocations: 0.9529 MB / 409.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003747/0.3171, allocations: 107.7 kB / 409.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.466e-05/0.3171, allocations: 4 kB / 409.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.849e-05/0.3172, allocations: 15.86 kB / 409.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.3174, allocations: 7.938 kB / 409.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.3176, allocations: 39.89 kB / 409.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.3178, allocations: 39.86 kB / 409.9 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.3179, allocations: 20.17 kB / 409.9 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.591e-05/0.3179, allocations: 11.94 kB / 410 MB, free: 388 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.859e-05/0.318, allocations: 19.86 kB / 410 MB, free: 368 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.318, allocations: 8 kB / 410 MB, free: 360 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.175e-05/0.318, allocations: 4 kB / 410 MB, free: 356 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.788e-05/0.3181, allocations: 15.92 kB / 410 MB, free: 340 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.3181, allocations: 31.8 kB / 410 MB, free: 308 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.3183, allocations: 54.7 kB / 410.1 MB, free: 256 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3183, allocations: 0 / 410.1 MB, free: 256 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3183, allocations: 0 / 410.1 MB, free: 256 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.3183, allocations: 0 / 410.1 MB, free: 256 kB / 318.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.0005649/0.3189, allocations: 375 kB / 410.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.319, allocations: 16.03 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.065e-05/0.319, allocations: 38.73 kB / 410.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.44e-05/0.319, allocations: 12.84 kB / 410.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002974/0.3193, allocations: 192.3 kB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3194, allocations: 4.375 kB / 410.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.3194, allocations: 8.375 kB / 410.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.3197, allocations: 135.5 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3197, allocations: 0 / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.3197, allocations: 0 / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3197, allocations: 0 / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.707e-05/0.3198, allocations: 19.97 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001857/0.3199, allocations: 177.5 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.3201, allocations: 70.66 kB / 411.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.294e-05/0.3202, allocations: 36.89 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.3202, allocations: 4 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.3202, allocations: 34.5 kB / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.3202, allocations: 0 / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002009/0.3204, allocations: 81.8 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.3205, allocations: 67.33 kB / 411.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.3206, allocations: 137.8 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.3207, allocations: 29.7 kB / 411.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.176e-05/0.3207, allocations: 84.14 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.3207, allocations: 7.938 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.3208, allocations: 21.7 kB / 411.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3209, allocations: 318.8 kB / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.218e-05/0.321, allocations: 11.98 kB / 411.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.584e-05/0.321, allocations: 54.88 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.943e-05/0.3211, allocations: 78.73 kB / 412.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3211, allocations: 0 / 412.1 MB, free: 13.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001244/0.3213, allocations: 93.39 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.3213, allocations: 8.25 kB / 412.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3213, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3213, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.651e-05/0.3214, allocations: 15.98 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3214, allocations: 7.938 kB / 412.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.309e-05/0.3214, allocations: 3.953 kB / 412.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-06/0.3215, allocations: 4 kB / 412.2 MB, free: 13.85 MB / 334.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.0001038/0.3216, allocations: 125.8 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.712e-05/0.3217, allocations: 73.58 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.159e-05/0.3217, allocations: 16.72 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.3217, allocations: 4 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3217, allocations: 3.984 kB / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3217, allocations: 0 / 412.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.3219, allocations: 173.6 kB / 412.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3219, allocations: 3.984 kB / 412.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.322, allocations: 23.86 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.322, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.322, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.322, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.322, allocations: 0 / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001307/0.3221, allocations: 101.1 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/0.3222, allocations: 101 kB / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.3223, allocations: 0 / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.913e-05/0.3223, allocations: 0 / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-06/0.3223, allocations: 0 / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-06/0.3223, allocations: 4 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.488e-05/0.3224, allocations: 106.1 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3224, allocations: 4 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001959/0.3226, allocations: 12.19 kB / 412.9 MB, free: 13.01 MB / 334.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.0006386/0.3232, allocations: 0.667 MB / 413.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.3234, allocations: 44.91 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.3234, allocations: 4.125 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.3234, allocations: 3.938 kB / 413.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.3237, allocations: 45.86 kB / 413.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.3249, allocations: 1.339 MB / 415 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.3253, allocations: 0.7001 MB / 415.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.404e-05/0.3253, allocations: 7.953 kB / 415.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.3254, allocations: 19.42 kB / 415.8 MB, free: 10 MB / 334.1 MB Notification: Performance of SimCode: time 1.934e-06/0.3254, allocations: 3.938 kB / 415.8 MB, free: 10 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.3514, allocations: 1.741 MB / 417.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.36/8.712, allocations: 12.03 kB / 417.5 MB, free: 8.359 MB / 334.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.1.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