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.001666/0.001666, allocations: 120.8 kB / 17.74 MB, free: 5.293 MB / 14.72 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.002053/0.002053, allocations: 190.9 kB / 20.68 MB, free: 2.359 MB / 14.72 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 1.421/1.421, allocations: 222.9 MB / 246.4 MB, free: 4.199 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001432/0.001432, allocations: 47.92 kB / 357.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09165, allocations: 49.43 MB / 406.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.0021/0.09379, allocations: 0.8511 MB / 407.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003678/0.09417, allocations: 115.6 kB / 407.9 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.403e-05/0.09426, allocations: 4 kB / 407.9 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.819e-05/0.09437, allocations: 7.875 kB / 407.9 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.09449, allocations: 11.92 kB / 407.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.09468, allocations: 35.91 kB / 407.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.0948, allocations: 43.84 kB / 408 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.09491, allocations: 27.97 kB / 408 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.783e-05/0.09495, allocations: 11.94 kB / 408 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.642e-05/0.09503, allocations: 27.86 kB / 408.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.832e-05/0.09505, allocations: 4 kB / 408.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.213e-05/0.09507, allocations: 4 kB / 408.1 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.09511, allocations: 11.98 kB / 408.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.653e-05/0.09517, allocations: 35.73 kB / 408.1 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.09528, allocations: 55.95 kB / 408.2 MB, free: 6.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.0953, allocations: 8 kB / 408.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0953, allocations: 0 / 408.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.09531, allocations: 0 / 408.2 MB, free: 6.109 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.000492/0.09581, allocations: 387 kB / 408.5 MB, free: 5.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.09585, allocations: 12.03 kB / 408.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.946e-05/0.0959, allocations: 34.75 kB / 408.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.883e-05/0.09593, allocations: 8.891 kB / 408.6 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.09614, allocations: 192.2 kB / 408.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.09617, allocations: 16.31 kB / 408.8 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.09618, allocations: 4.375 kB / 408.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.09646, allocations: 143.8 kB / 408.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.09648, allocations: 3.938 kB / 409 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.0965, allocations: 0 / 409 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.09651, allocations: 0 / 409 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.09656, allocations: 31.97 kB / 409 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.09674, allocations: 173.6 kB / 409.2 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.09691, allocations: 82.62 kB / 409.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.165e-05/0.09699, allocations: 40.89 kB / 409.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.09701, allocations: 0 / 409.3 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.09705, allocations: 42.55 kB / 409.3 MB, free: 4.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.71e-07/0.09706, allocations: 0 / 409.3 MB, free: 4.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002256/0.09728, allocations: 109.5 kB / 409.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.09735, allocations: 51.41 kB / 409.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.09749, allocations: 148.1 kB / 409.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.09751, allocations: 25.7 kB / 409.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.09757, allocations: 88.12 kB / 409.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.09759, allocations: 7.938 kB / 409.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.09764, allocations: 29.67 kB / 409.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.09779, allocations: 322.8 kB / 410.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.228e-05/0.09781, allocations: 8 kB / 410.1 MB, free: 3.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.005e-05/0.09788, allocations: 54.86 kB / 410.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.354e-05/0.09798, allocations: 82.73 kB / 410.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09799, allocations: 0 / 410.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001351/0.09813, allocations: 93.45 kB / 410.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.09815, allocations: 7.938 kB / 410.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.09816, allocations: 0 / 410.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.09818, allocations: 4 kB / 410.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/0.09827, allocations: 19.98 kB / 410.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.09828, allocations: 7.938 kB / 410.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.54e-05/0.09832, allocations: 4 kB / 410.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.09834, allocations: 8.25 kB / 410.4 MB, free: 3.625 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 9.896e-05/0.09844, allocations: 125.8 kB / 410.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.09856, allocations: 81.72 kB / 410.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.289e-05/0.0986, allocations: 12.72 kB / 410.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.09861, allocations: 0 / 410.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.09862, allocations: 0 / 410.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.09863, allocations: 11.92 kB / 410.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.09875, allocations: 169.6 kB / 410.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.09876, allocations: 0 / 410.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.09884, allocations: 23.98 kB / 410.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.09885, allocations: 3.938 kB / 410.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.09886, allocations: 0 / 410.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.09886, allocations: 4 kB / 410.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.09887, allocations: 0 / 410.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.09901, allocations: 109 kB / 410.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.259e-05/0.09909, allocations: 96.98 kB / 411 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.09911, allocations: 0 / 411 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.363e-05/0.09915, allocations: 15.94 kB / 411 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-06/0.09915, allocations: 0 / 411 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.09916, allocations: 192 / 411 MB, free: 2.879 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.766e-05/0.09925, allocations: 117.2 kB / 411.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09925, allocations: 3.938 kB / 411.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001976/0.09945, allocations: 8 kB / 411.1 MB, free: 2.754 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.0005463/0.1, allocations: 0.6826 MB / 411.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.1001, allocations: 47.86 kB / 411.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1002, allocations: 0 / 411.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.1002, allocations: 0 / 411.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1004, allocations: 44 kB / 411.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1016, allocations: 1.387 MB / 413.3 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.102, allocations: 0.6931 MB / 414 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.592e-05/0.102, allocations: 8.656 kB / 414 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/0.1021, allocations: 19.44 kB / 414 MB, free: 15.7 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1021, allocations: 4 kB / 414 MB, free: 15.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.124, allocations: 1.826 MB / 415.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.278/8.402, allocations: 6.938 kB / 415.8 MB, free: 13.98 MB / 350.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 10.918625827995129]