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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009119, allocations: 80.73 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 153.1 kB / 23.93 MB, free: 0.6211 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9265/0.9265, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.475e-05, allocations: 2.281 kB / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002514/0.002539, allocations: 0.8365 MB / 319.3 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003455/0.002884, allocations: 123.5 kB / 319.4 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.882e-05/0.002963, allocations: 15.88 kB / 319.4 MB, free: 5.266 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.382e-05/0.003057, allocations: 7.922 kB / 319.4 MB, free: 5.258 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.003189, allocations: 7.938 kB / 319.4 MB, free: 5.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.003377, allocations: 43.81 kB / 319.5 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.951e-05/0.003476, allocations: 39.86 kB / 319.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.003582, allocations: 23.97 kB / 319.5 MB, free: 5.145 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.317e-05/0.003626, allocations: 23.91 kB / 319.6 MB, free: 5.121 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.119e-05/0.003697, allocations: 19.97 kB / 319.6 MB, free: 5.102 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.003727, allocations: 4 kB / 319.6 MB, free: 5.098 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.766e-06/0.003736, allocations: 4 kB / 319.6 MB, free: 5.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.061e-05/0.003776, allocations: 11.94 kB / 319.6 MB, free: 5.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.003809, allocations: 23.91 kB / 319.6 MB, free: 5.059 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001133/0.003923, allocations: 63.73 kB / 319.7 MB, free: 4.996 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.003927, allocations: 0 / 319.7 MB, free: 4.996 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.003928, allocations: 0 / 319.7 MB, free: 4.996 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.003933, allocations: 0 / 319.7 MB, free: 4.996 MB / 282.7 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.0003913/0.004324, allocations: 298 kB / 320 MB, free: 4.672 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.004363, allocations: 12.91 kB / 320 MB, free: 4.66 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.821e-05/0.004391, allocations: 34.75 kB / 320 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.561e-05/0.004417, allocations: 16.84 kB / 320 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.004581, allocations: 137.6 kB / 320.2 MB, free: 4.441 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.004589, allocations: 4.375 kB / 320.2 MB, free: 4.438 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-06/0.004598, allocations: 8.312 kB / 320.2 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.004826, allocations: 139.8 kB / 320.3 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.004835, allocations: 192 / 320.3 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.004844, allocations: 8.312 kB / 320.3 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.004851, allocations: 4.125 kB / 320.3 MB, free: 4.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.632e-05/0.004887, allocations: 19.98 kB / 320.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001194/0.005006, allocations: 144.7 kB / 320.5 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.005262, allocations: 70.7 kB / 320.6 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.988e-05/0.005312, allocations: 44.97 kB / 320.6 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.00532, allocations: 4 kB / 320.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.00534, allocations: 34.55 kB / 320.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 8.02e-07/0.005341, allocations: 0 / 320.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001625/0.005503, allocations: 93.62 kB / 320.7 MB, free: 3.797 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.005548, allocations: 63.66 kB / 320.8 MB, free: 3.723 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.045e-05/0.005628, allocations: 136.5 kB / 320.9 MB, free: 3.582 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.00564, allocations: 33.7 kB / 321 MB, free: 3.543 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.005672, allocations: 92.12 kB / 321 MB, free: 3.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.005687, allocations: 7.891 kB / 321.1 MB, free: 3.441 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.005712, allocations: 13.72 kB / 321.1 MB, free: 3.422 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.013e-05/0.005792, allocations: 318.8 kB / 321.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.005802, allocations: 7.922 kB / 321.4 MB, free: 3.094 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.983e-06/0.005809, allocations: 4 kB / 321.4 MB, free: 3.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.121e-05/0.00583, allocations: 12.86 kB / 321.4 MB, free: 3.074 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.005832, allocations: 3.938 kB / 321.4 MB, free: 3.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.259e-05/0.005875, allocations: 37.7 kB / 321.4 MB, free: 3.027 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.005887, allocations: 8.094 kB / 321.5 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.005891, allocations: 4 kB / 321.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.005904, allocations: 3.938 kB / 321.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.125e-05/0.005946, allocations: 0 / 321.5 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.902e-06/0.005952, allocations: 7.969 kB / 321.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.091e-05/0.005963, allocations: 11.89 kB / 321.5 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.005968, allocations: 0 / 321.5 MB, free: 2.992 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.725e-05/0.006035, allocations: 113.8 kB / 321.6 MB, free: 2.871 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.006098, allocations: 81.62 kB / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.006131, allocations: 16.78 kB / 321.7 MB, free: 2.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.006134, allocations: 7.938 kB / 321.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.006138, allocations: 0 / 321.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.006141, allocations: 0 / 321.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.044e-05/0.006211, allocations: 136.7 kB / 321.8 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.006213, allocations: 4 kB / 321.8 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.717e-05/0.00626, allocations: 16 kB / 321.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.006262, allocations: 0 / 321.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.006268, allocations: 0 / 321.8 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.006271, allocations: 3.938 kB / 321.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.006274, allocations: 7.922 kB / 321.9 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.447e-05/0.006359, allocations: 109.1 kB / 322 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.163e-05/0.00639, allocations: 15.94 kB / 322 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.006403, allocations: 8 kB / 322 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.275e-05/0.006416, allocations: 7.875 kB / 322 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.086e-06/0.006419, allocations: 3.984 kB / 322 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.006423, allocations: 0 / 322 MB, free: 2.391 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.613e-05/0.006469, allocations: 115.2 kB / 322.1 MB, free: 2.277 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006469, allocations: 0 / 322.1 MB, free: 2.277 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001196/0.006588, allocations: 4 kB / 322.1 MB, free: 2.273 MB / 282.7 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.0003159/0.006904, allocations: 0.675 MB / 322.8 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.354e-05/0.006988, allocations: 31.97 kB / 322.8 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.006989, allocations: 0 / 322.8 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.00699, allocations: 0 / 322.8 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.007216, allocations: 54.5 kB / 322.9 MB, free: 1.488 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006651/0.007881, allocations: 1.204 MB / 324.1 MB, free: 200 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.909e-05/0.00794, allocations: 83.27 kB / 324.2 MB, free: 96 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.543e-05/0.007955, allocations: 7.984 kB / 324.2 MB, free: 88 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.57e-05/0.007991, allocations: 20.59 kB / 324.2 MB, free: 68 kB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.007991, allocations: 0 / 324.2 MB, free: 68 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.02402, allocations: 2.439 MB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/6.945, allocations: 7.031 kB / 326.6 MB, free: 13.76 MB / 298.7 MB " [Timeout remaining time 653] (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 1.79641e-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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 8.812723610550165]