Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002371/0.002371, allocations: 207.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2788, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002254/0.281, allocations: 0.8582 MB / 431.9 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003666/0.2814, allocations: 123.5 kB / 432.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.319e-05/0.2815, allocations: 0 / 432.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.204e-05/0.2816, allocations: 11.92 kB / 432.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.2817, allocations: 7.938 kB / 432.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.2819, allocations: 43.89 kB / 432.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.282, allocations: 39.86 kB / 432.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.2821, allocations: 15.92 kB / 432.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.2821, allocations: 19.92 kB / 432.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.506e-05/0.2822, allocations: 27.84 kB / 432.2 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.2822, allocations: 4 kB / 432.2 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.293e-05/0.2822, allocations: 4 kB / 432.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.556e-05/0.2823, allocations: 19.92 kB / 432.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.317e-05/0.2823, allocations: 19.81 kB / 432.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.2824, allocations: 61.42 kB / 432.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2824, allocations: 0 / 432.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2824, allocations: 3.938 kB / 432.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2824, allocations: 4 kB / 432.3 MB, free: 5.391 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004467/0.2829, allocations: 294.1 kB / 432.6 MB, free: 5.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2829, allocations: 16.02 kB / 432.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.283, allocations: 34.75 kB / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.283, allocations: 16.78 kB / 432.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001984/0.2832, allocations: 138.4 kB / 432.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2832, allocations: 4.375 kB / 432.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.2832, allocations: 4.375 kB / 432.8 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.2835, allocations: 147.7 kB / 433 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.2835, allocations: 3.938 kB / 433 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.2835, allocations: 0 / 433 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2835, allocations: 0 / 433 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.008e-05/0.2836, allocations: 23.98 kB / 433 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.2837, allocations: 148.7 kB / 433.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.2839, allocations: 78.62 kB / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.347e-05/0.2839, allocations: 32.89 kB / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.284, allocations: 4 kB / 433.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.284, allocations: 38.55 kB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.61e-07/0.284, allocations: 0 / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002066/0.2842, allocations: 97.56 kB / 433.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.2843, allocations: 59.41 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2844, allocations: 144.2 kB / 433.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.2844, allocations: 25.7 kB / 433.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.2844, allocations: 96.12 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.2845, allocations: 4 kB / 433.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.61e-05/0.2845, allocations: 21.72 kB / 433.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.2847, allocations: 322.8 kB / 434.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.163e-05/0.2847, allocations: 11.94 kB / 434.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.879e-05/0.2848, allocations: 62.8 kB / 434.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.872e-05/0.2849, allocations: 78.73 kB / 434.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2849, allocations: 0 / 434.2 MB, free: 3.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001354/0.285, allocations: 93.45 kB / 434.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.285, allocations: 7.938 kB / 434.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.285, allocations: 4 kB / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.285, allocations: 4.25 kB / 434.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.701e-05/0.2851, allocations: 23.98 kB / 434.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.2851, allocations: 0 / 434.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.509e-05/0.2852, allocations: 7.938 kB / 434.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.2852, allocations: 4 kB / 434.3 MB, free: 3.133 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: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * 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.0001176/0.2853, allocations: 129.8 kB / 434.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.2854, allocations: 89.67 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.341e-05/0.2855, allocations: 16.72 kB / 434.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2855, allocations: 0 / 434.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2855, allocations: 0 / 434.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.2855, allocations: 7.984 kB / 434.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.2856, allocations: 136.8 kB / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2856, allocations: 0 / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.959e-05/0.2856, allocations: 19.92 kB / 434.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2856, allocations: 3.938 kB / 434.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.2857, allocations: 0 / 434.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2857, allocations: 0 / 434.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2857, allocations: 0 / 434.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.2858, allocations: 109.1 kB / 434.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.853e-05/0.2859, allocations: 23.81 kB / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.2859, allocations: 4 kB / 434.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.078e-05/0.2859, allocations: 4 kB / 434.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.496e-06/0.2859, allocations: 0 / 434.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.2859, allocations: 0 / 434.9 MB, free: 2.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.183e-05/0.286, allocations: 115.2 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.286, allocations: 3.938 kB / 435 MB, free: 2.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001988/0.2862, allocations: 8 kB / 435 MB, free: 2.395 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * 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.0005592/0.2867, allocations: 0.6753 MB / 435.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.2869, allocations: 48.23 kB / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2869, allocations: 0 / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.2869, allocations: 192 / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.2872, allocations: 57.73 kB / 435.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.2885, allocations: 1.375 MB / 437.2 MB, free: 96 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.543e-05/0.2886, allocations: 79.38 kB / 437.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.12e-05/0.2886, allocations: 8.859 kB / 437.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.29e-05/0.2886, allocations: 19.44 kB / 437.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2886, allocations: 0 / 437.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.3182, allocations: 2.405 MB / 439.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.92, allocations: 13.86 kB / 439.7 MB, free: 13.69 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1] [Calling sys.exit(0), Time elapsed: 13.49758500198368]