Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001921/0.001921, allocations: 124 kB / 17.79 MB, free: 5.266 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.002644/0.002644, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.46/1.46, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 51.91 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1006, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002234/0.1028, allocations: 0.8777 MB / 418.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003376/0.1031, allocations: 111.6 kB / 418.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.349e-05/0.1032, allocations: 4 kB / 418.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.13e-05/0.1032, allocations: 3.938 kB / 418.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.1033, allocations: 7.922 kB / 418.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.1036, allocations: 39.89 kB / 418.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.1037, allocations: 43.86 kB / 418.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.101e-05/0.1038, allocations: 11.98 kB / 418.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.014e-05/0.1038, allocations: 15.92 kB / 418.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.248e-05/0.1038, allocations: 27.86 kB / 418.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.1038, allocations: 4 kB / 418.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.144e-05/0.1038, allocations: 4 kB / 418.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.1039, allocations: 11.98 kB / 418.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.1039, allocations: 27.8 kB / 419 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.104, allocations: 59.62 kB / 419 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.104, allocations: 0 / 419 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1041, allocations: 0 / 419 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.217e-06/0.1041, allocations: 0 / 419 MB, free: 11.39 MB / 350.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.0004082/0.1045, allocations: 379.1 kB / 419.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1045, allocations: 12.03 kB / 419.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/0.1045, allocations: 34.73 kB / 419.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.114e-05/0.1046, allocations: 12.88 kB / 419.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.1048, allocations: 202.5 kB / 419.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1048, allocations: 8.375 kB / 419.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.1049, allocations: 4.375 kB / 419.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.1051, allocations: 127.9 kB / 419.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1051, allocations: 3.938 kB / 419.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.754e-06/0.1051, allocations: 0 / 419.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1051, allocations: 0 / 419.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.378e-05/0.1052, allocations: 19.98 kB / 419.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.1054, allocations: 169.6 kB / 420 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.1055, allocations: 70.64 kB / 420 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.156e-05/0.1056, allocations: 36.89 kB / 420.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.717e-06/0.1056, allocations: 0 / 420.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.1056, allocations: 30.56 kB / 420.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.1056, allocations: 0 / 420.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002028/0.1058, allocations: 93.52 kB / 420.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.1059, allocations: 55.39 kB / 420.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.106, allocations: 137.8 kB / 420.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.106, allocations: 25.7 kB / 420.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.958e-05/0.1061, allocations: 84.14 kB / 420.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.1061, allocations: 11.94 kB / 420.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.1061, allocations: 29.59 kB / 420.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1063, allocations: 318.8 kB / 420.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.129e-05/0.1063, allocations: 7.984 kB / 420.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.966e-05/0.1064, allocations: 58.81 kB / 420.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.794e-05/0.1065, allocations: 78.8 kB / 421 MB, free: 9.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1065, allocations: 0 / 421 MB, free: 9.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001335/0.1066, allocations: 81.5 kB / 421.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.1066, allocations: 16.19 kB / 421.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1066, allocations: 0 / 421.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1067, allocations: 4 kB / 421.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.491e-05/0.1067, allocations: 11.92 kB / 421.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.1067, allocations: 0 / 421.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.905e-05/0.1067, allocations: 15.89 kB / 421.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1067, allocations: 4 kB / 421.1 MB, free: 9.008 MB / 350.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 (integerConstant.y,xor.y,xor.u2,xor.u1,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.756e-05/0.1068, allocations: 117.8 kB / 421.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.1069, allocations: 81.81 kB / 421.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.107, allocations: 16.38 kB / 421.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.107, allocations: 0 / 421.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.107, allocations: 0 / 421.3 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.107, allocations: 3.984 kB / 421.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.1071, allocations: 165.7 kB / 421.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1071, allocations: 0 / 421.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.248e-05/0.1071, allocations: 4 kB / 421.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1071, allocations: 3.938 kB / 421.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1072, allocations: 4 kB / 421.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.1072, allocations: 4 kB / 421.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1072, allocations: 4.078 kB / 421.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.1073, allocations: 105 kB / 421.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.823e-05/0.1074, allocations: 93.05 kB / 421.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.1074, allocations: 7.938 kB / 421.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.617e-05/0.1074, allocations: 0 / 421.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-06/0.1074, allocations: 0 / 421.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.1074, allocations: 0 / 421.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.294e-05/0.1075, allocations: 110.3 kB / 421.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1075, allocations: 4 kB / 421.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002002/0.1077, allocations: 12.19 kB / 421.8 MB, free: 8.188 MB / 350.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,xor.u1,xor.u2,xor.y,integerConstant.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.0005149/0.1082, allocations: 0.6776 MB / 422.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.1083, allocations: 44.3 kB / 422.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1083, allocations: 0 / 422.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.92e-07/0.1083, allocations: 0 / 422.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.1086, allocations: 32.02 kB / 422.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.1098, allocations: 1.319 MB / 423.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1101, allocations: 0.7046 MB / 424.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.773e-05/0.1102, allocations: 4 kB / 424.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.1102, allocations: 19.44 kB / 424.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1102, allocations: 0 / 424.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.1345, allocations: 1.711 MB / 426.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.123/8.258, allocations: 12 kB / 426.4 MB, free: 3.617 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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,periodicClock.factor,periodicClock.resolution,previous(unitDelay1.u),assignClock1.u,assignClock1.y [Calling sys.exit(0), Time elapsed: 10.929289605934173]