Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001364/0.00137, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.00118, allocations: 60.06 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09095/0.09215, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002328/0.09453, allocations: 0.8435 MB / 358.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003289/0.09488, allocations: 115.7 kB / 358.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.136e-05/0.09498, allocations: 4 kB / 358.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.133e-05/0.09508, allocations: 7.875 kB / 358.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.09524, allocations: 19.92 kB / 358.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002035/0.09546, allocations: 31.89 kB / 358.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.919e-05/0.09556, allocations: 43.92 kB / 358.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.09568, allocations: 31.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.24e-05/0.09572, allocations: 19.92 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.0958, allocations: 15.92 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.09583, allocations: 4 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.44e-05/0.09585, allocations: 4 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.518e-05/0.09591, allocations: 19.92 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.123e-05/0.09596, allocations: 31.75 kB / 358.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.09608, allocations: 55.8 kB / 358.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.09609, allocations: 0 / 358.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.0961, allocations: 4 kB / 358.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.09611, allocations: 0 / 358.8 MB, free: 12.79 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.000462/0.09658, allocations: 379.3 kB / 359.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.09662, allocations: 12.03 kB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.441e-05/0.09666, allocations: 34.75 kB / 359.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.925e-05/0.09669, allocations: 8.844 kB / 359.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.09687, allocations: 203.1 kB / 359.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.09689, allocations: 4.375 kB / 359.4 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.09691, allocations: 4.375 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.09716, allocations: 143.6 kB / 359.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.09718, allocations: 3.938 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.856e-06/0.0972, allocations: 4 kB / 359.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.09721, allocations: 8 kB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.364e-05/0.09726, allocations: 19.98 kB / 359.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.09739, allocations: 173.6 kB / 359.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.09753, allocations: 82.62 kB / 359.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.117e-05/0.0976, allocations: 40.84 kB / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.09762, allocations: 0 / 359.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.09764, allocations: 38.56 kB / 360 MB, free: 11.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 8.52e-07/0.09765, allocations: 0 / 360 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001819/0.09784, allocations: 97.52 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.09789, allocations: 59.41 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.09802, allocations: 137.8 kB / 360.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.09804, allocations: 25.7 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.908e-05/0.09808, allocations: 92.08 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.0981, allocations: 7.906 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/0.09815, allocations: 29.7 kB / 360.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.09827, allocations: 318.8 kB / 360.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.213e-05/0.09829, allocations: 11.98 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-05/0.09835, allocations: 58.86 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.171e-05/0.09843, allocations: 70.75 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.09845, allocations: 8 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001245/0.09857, allocations: 93.39 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.0986, allocations: 11.94 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.09861, allocations: 0 / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.09862, allocations: 4 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.981e-05/0.0987, allocations: 16 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.09871, allocations: 4.25 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.09875, allocations: 11.88 kB / 361 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.09877, allocations: 11.98 kB / 361 MB, free: 10.32 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: 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.000105/0.09888, allocations: 129.7 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.09899, allocations: 93.66 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.027e-05/0.09905, allocations: 12.72 kB / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.09906, allocations: 0 / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.09906, allocations: 0 / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.09907, allocations: 0 / 361.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.0992, allocations: 181.5 kB / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.09921, allocations: 0 / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.5e-05/0.09929, allocations: 8 kB / 361.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.09931, allocations: 11.88 kB / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.09932, allocations: 0 / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.09933, allocations: 192 / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09933, allocations: 0 / 361.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.09947, allocations: 109.3 kB / 361.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.854e-05/0.09955, allocations: 100.9 kB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.09958, allocations: 4 kB / 361.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.487e-05/0.09961, allocations: 4 kB / 361.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-06/0.09962, allocations: 3.984 kB / 361.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.09963, allocations: 4 kB / 361.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.891e-05/0.0997, allocations: 105.9 kB / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09971, allocations: 0 / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002007/0.09991, allocations: 8 kB / 361.8 MB, free: 9.457 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: 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.0004969/0.1004, allocations: 0.6865 MB / 362.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.1006, allocations: 59.83 kB / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1006, allocations: 0 / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.51e-07/0.1006, allocations: 0 / 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.0002938/0.1009, allocations: 48.52 kB / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.1021, allocations: 1.369 MB / 363.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.1025, allocations: 0.7002 MB / 364.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.909e-05/0.1026, allocations: 4.656 kB / 364.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.1026, allocations: 19.38 kB / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1026, allocations: 0 / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.1214, allocations: 1.775 MB / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/7.688, allocations: 0 / 366.4 MB, free: 4.707 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1]