Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 113 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000976/0.000976, allocations: 51.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2625, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002002/0.2646, allocations: 0.8527 MB / 401.1 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003133/0.2649, allocations: 118.4 kB / 401.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.755e-05/0.265, allocations: 6.281 kB / 401.2 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.749e-05/0.2651, allocations: 3.938 kB / 401.2 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.2652, allocations: 10.2 kB / 401.2 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001857/0.2654, allocations: 43.17 kB / 401.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.989e-05/0.2655, allocations: 45.23 kB / 401.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.764e-05/0.2656, allocations: 17.39 kB / 401.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.832e-05/0.2657, allocations: 13.78 kB / 401.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.724e-05/0.2657, allocations: 30.19 kB / 401.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.2658, allocations: 3.156 kB / 401.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.2658, allocations: 3.781 kB / 401.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.2658, allocations: 22.42 kB / 401.4 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.166e-05/0.2659, allocations: 28.17 kB / 401.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.266, allocations: 59.05 kB / 401.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.266, allocations: 0 / 401.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.266, allocations: 1.062 kB / 401.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.266, allocations: 0 / 401.5 MB, free: 7.531 MB / 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.0004116/0.2664, allocations: 381.6 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.2665, allocations: 9.656 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.773e-05/0.2665, allocations: 39.8 kB / 401.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.602e-05/0.2665, allocations: 9.891 kB / 401.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.2667, allocations: 208.6 kB / 402.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2667, allocations: 6.656 kB / 402.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.2668, allocations: 3.656 kB / 402.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.267, allocations: 141.5 kB / 402.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.267, allocations: 7.938 kB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.267, allocations: 0 / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.267, allocations: 0 / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.871e-05/0.2671, allocations: 23.98 kB / 402.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001227/0.2672, allocations: 173.6 kB / 402.5 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.2674, allocations: 74.66 kB / 402.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.104e-05/0.2674, allocations: 44.88 kB / 402.6 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.952e-06/0.2674, allocations: 4 kB / 402.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.2675, allocations: 34.56 kB / 402.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.2675, allocations: 3.938 kB / 402.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001834/0.2677, allocations: 109.6 kB / 402.7 MB, free: 6.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.2677, allocations: 51.41 kB / 402.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.2678, allocations: 148.2 kB / 402.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.2678, allocations: 25.7 kB / 402.9 MB, free: 5.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.2679, allocations: 88.14 kB / 403 MB, free: 5.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.2679, allocations: 4 kB / 403 MB, free: 5.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.2679, allocations: 33.66 kB / 403.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.433e-05/0.268, allocations: 314.8 kB / 403.4 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.127e-05/0.268, allocations: 11.98 kB / 403.4 MB, free: 5.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.309e-05/0.2681, allocations: 62.81 kB / 403.5 MB, free: 5.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.645e-05/0.2682, allocations: 74.8 kB / 403.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2682, allocations: 0 / 403.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001216/0.2683, allocations: 89.45 kB / 403.6 MB, free: 5.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.2683, allocations: 11.92 kB / 403.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.2683, allocations: 4 kB / 403.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2684, allocations: 0 / 403.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.533e-05/0.2684, allocations: 20.19 kB / 403.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2684, allocations: 8 kB / 403.7 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.2685, allocations: 7.938 kB / 403.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.2685, allocations: 4 kB / 403.7 MB, free: 5.125 MB / 318.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 8.284e-05/0.2686, allocations: 125.8 kB / 403.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.008e-05/0.2687, allocations: 85.5 kB / 403.9 MB, free: 4.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.2687, allocations: 16.89 kB / 403.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2687, allocations: 0 / 403.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.2687, allocations: 11.94 kB / 403.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.2687, allocations: 4 kB / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.197e-05/0.2688, allocations: 165.7 kB / 404.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2689, allocations: 3.984 kB / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.764e-05/0.2689, allocations: 16 kB / 404.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2689, allocations: 7.875 kB / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.2689, allocations: 0 / 404.1 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.269, allocations: 4.391 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.269, allocations: 0 / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.2691, allocations: 128.9 kB / 404.2 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-05/0.2692, allocations: 100.9 kB / 404.3 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.2692, allocations: 4 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.301e-05/0.2692, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.365e-06/0.2692, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.2693, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.2693, allocations: 114.1 kB / 404.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2693, allocations: 0 / 404.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000193/0.2695, allocations: 8 kB / 404.4 MB, free: 4.242 MB / 318.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.0003873/0.2699, allocations: 0.6826 MB / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001053/0.27, allocations: 43.92 kB / 405.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.27, allocations: 0.5625 kB / 405.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.27, allocations: 0 / 405.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.2703, allocations: 54.38 kB / 405.2 MB, free: 3.438 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009402/0.2713, allocations: 1.378 MB / 406.6 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.2715, allocations: 0.704 MB / 407.3 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.553e-05/0.2715, allocations: 4.672 kB / 407.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.2716, allocations: 19.53 kB / 407.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2716, allocations: 3.938 kB / 407.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.2892, allocations: 1.812 MB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.705, allocations: 8.562 kB / 409.2 MB, free: 15.48 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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]