Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 212.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 51.91 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.257, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002304/0.2593, allocations: 0.8737 MB / 432 MB, free: 5.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003491/0.2597, allocations: 119.6 kB / 432.1 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.206e-05/0.2598, allocations: 7.938 kB / 432.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.604e-05/0.2598, allocations: 3.938 kB / 432.1 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.26, allocations: 11.92 kB / 432.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.2602, allocations: 31.91 kB / 432.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.2603, allocations: 43.91 kB / 432.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2604, allocations: 19.98 kB / 432.2 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.565e-05/0.2604, allocations: 15.88 kB / 432.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.722e-05/0.2605, allocations: 15.92 kB / 432.3 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.2605, allocations: 4 kB / 432.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.136e-05/0.2605, allocations: 4 kB / 432.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.2606, allocations: 19.92 kB / 432.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.536e-05/0.2606, allocations: 27.8 kB / 432.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.2607, allocations: 47.61 kB / 432.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2607, allocations: 0 / 432.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2607, allocations: 3.938 kB / 432.4 MB, free: 5.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.2607, allocations: 4 kB / 432.4 MB, free: 5.617 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.0004127/0.2611, allocations: 290.6 kB / 432.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2612, allocations: 15.97 kB / 432.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/0.2612, allocations: 34.73 kB / 432.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.026e-05/0.2613, allocations: 16.83 kB / 432.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.2615, allocations: 138.4 kB / 432.9 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.2615, allocations: 4.375 kB / 432.9 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.2615, allocations: 4.375 kB / 432.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.2618, allocations: 131.8 kB / 433 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2618, allocations: 11.92 kB / 433 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2618, allocations: 4 kB / 433 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.2618, allocations: 0 / 433 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.047e-05/0.2619, allocations: 12 kB / 433 MB, free: 4.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001588/0.262, allocations: 140.7 kB / 433.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.2622, allocations: 58.75 kB / 433.2 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.732e-05/0.2622, allocations: 36.8 kB / 433.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.2622, allocations: 7.984 kB / 433.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.2623, allocations: 34.56 kB / 433.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.012e-06/0.2623, allocations: 0 / 433.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001947/0.2625, allocations: 93.55 kB / 433.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.2625, allocations: 59.41 kB / 433.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.2626, allocations: 125.8 kB / 433.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2627, allocations: 29.7 kB / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.571e-05/0.2627, allocations: 84.14 kB / 433.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.2627, allocations: 15.94 kB / 433.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.2628, allocations: 29.66 kB / 433.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2629, allocations: 318.8 kB / 434 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.075e-05/0.2629, allocations: 8 kB / 434.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.003e-05/0.263, allocations: 62.86 kB / 434.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.283e-05/0.2631, allocations: 70.75 kB / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2631, allocations: 0 / 434.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001321/0.2632, allocations: 93.44 kB / 434.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2632, allocations: 11.94 kB / 434.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2632, allocations: 4 kB / 434.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.2632, allocations: 4 kB / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.656e-05/0.2633, allocations: 8.25 kB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2633, allocations: 0 / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.593e-05/0.2633, allocations: 7.938 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2633, allocations: 4.188 kB / 434.3 MB, free: 3.441 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 (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.462e-05/0.2634, allocations: 132 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.904e-05/0.2635, allocations: 69.53 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.771e-05/0.2635, allocations: 20.36 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.2635, allocations: 0 / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2635, allocations: 3.938 kB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2635, allocations: 4 kB / 434.5 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.2636, allocations: 132.7 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2636, allocations: 4 kB / 434.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.865e-05/0.2637, allocations: 7.984 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.2637, allocations: 7.922 kB / 434.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.2637, allocations: 0 / 434.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2637, allocations: 3.938 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2637, allocations: 4 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.2638, allocations: 97.06 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.2638, allocations: 19.94 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.2639, allocations: 3.938 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.655e-05/0.2639, allocations: 4 kB / 434.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-06/0.2639, allocations: 0 / 434.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.2639, allocations: 4 kB / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.953e-05/0.264, allocations: 95.27 kB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.264, allocations: 0 / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001953/0.2641, allocations: 12 kB / 434.9 MB, free: 2.75 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,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.0004725/0.2646, allocations: 0.6625 MB / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.2647, allocations: 39.92 kB / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2647, allocations: 0.5625 kB / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.2647, allocations: 0 / 435.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.265, allocations: 59.81 kB / 435.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.2662, allocations: 1.323 MB / 437 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.2666, allocations: 0.704 MB / 437.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.967e-05/0.2666, allocations: 11.95 kB / 437.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.385e-05/0.2666, allocations: 19.42 kB / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2666, allocations: 0 / 437.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.2927, allocations: 1.851 MB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.01, allocations: 2.234 kB / 439.6 MB, free: 14.04 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 13.576983052000287]