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.001847/0.001847, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002078/0.002078, allocations: 213.3 kB / 23.73 MB, free: 4.531 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.376/1.376, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001564/0.001564, allocations: 55.92 kB / 377.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2646, allocations: 53.36 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002296/0.2669, allocations: 0.8699 MB / 431.9 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003707/0.2672, allocations: 111.6 kB / 432.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.909e-05/0.2673, allocations: 4 kB / 432.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.543e-05/0.2674, allocations: 7.875 kB / 432.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.2675, allocations: 11.92 kB / 432.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.2677, allocations: 35.91 kB / 432.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.2679, allocations: 39.91 kB / 432.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.268, allocations: 19.78 kB / 432.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.4e-05/0.268, allocations: 11.94 kB / 432.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.168e-05/0.2681, allocations: 23.8 kB / 432.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.2681, allocations: 4 kB / 432.2 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.344e-05/0.2681, allocations: 4 kB / 432.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.853e-05/0.2681, allocations: 19.91 kB / 432.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.643e-05/0.2682, allocations: 19.88 kB / 432.3 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001313/0.2683, allocations: 53.62 kB / 432.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2683, allocations: 0 / 432.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2683, allocations: 0 / 432.3 MB, free: 5.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.2683, allocations: 0 / 432.3 MB, free: 5.391 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.0004286/0.2688, allocations: 298 kB / 432.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.2688, allocations: 8.031 kB / 432.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.615e-05/0.2688, allocations: 38.73 kB / 432.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.2689, allocations: 12.89 kB / 432.7 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002699/0.2691, allocations: 137 kB / 432.8 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.2692, allocations: 8.375 kB / 432.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.2692, allocations: 4.375 kB / 432.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.2695, allocations: 127.8 kB / 432.9 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2695, allocations: 3.938 kB / 432.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.2695, allocations: 4 kB / 432.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.2695, allocations: 4 kB / 432.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.16e-05/0.2695, allocations: 19.94 kB / 433 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.2697, allocations: 140.7 kB / 433.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.2698, allocations: 66.73 kB / 433.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.583e-05/0.2699, allocations: 36.84 kB / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.2699, allocations: 0 / 433.2 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.2699, allocations: 34.5 kB / 433.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.2699, allocations: 4 kB / 433.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000198/0.2701, allocations: 89.56 kB / 433.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.2702, allocations: 55.41 kB / 433.4 MB, free: 4.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.2703, allocations: 129.8 kB / 433.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.2703, allocations: 33.7 kB / 433.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.2704, allocations: 80.14 kB / 433.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.2704, allocations: 19.88 kB / 433.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.2704, allocations: 25.72 kB / 433.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2706, allocations: 318.8 kB / 434 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.971e-05/0.2706, allocations: 8 kB / 434 MB, free: 3.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.818e-05/0.2707, allocations: 62.8 kB / 434 MB, free: 3.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.774e-05/0.2708, allocations: 74.75 kB / 434.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2708, allocations: 0 / 434.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001319/0.2709, allocations: 85.5 kB / 434.2 MB, free: 3.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2709, allocations: 11.94 kB / 434.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2709, allocations: 256 / 434.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2709, allocations: 8 kB / 434.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.891e-05/0.271, allocations: 7.938 kB / 434.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.271, allocations: 0 / 434.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.57e-05/0.271, allocations: 11.94 kB / 434.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.271, allocations: 4 kB / 434.2 MB, free: 3.211 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 0.0001027/0.2711, allocations: 129.7 kB / 434.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.2712, allocations: 69.59 kB / 434.4 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.2712, allocations: 16.36 kB / 434.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.2712, allocations: 0 / 434.5 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2712, allocations: 4 kB / 434.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2712, allocations: 0 / 434.5 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.2713, allocations: 136.8 kB / 434.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2714, allocations: 3.984 kB / 434.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.606e-06/0.2714, allocations: 0 / 434.6 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2714, allocations: 7.875 kB / 434.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.2714, allocations: 0 / 434.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2714, allocations: 4 kB / 434.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2714, allocations: 0 / 434.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.2715, allocations: 109.4 kB / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-05/0.2715, allocations: 15.94 kB / 434.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.2716, allocations: 7.938 kB / 434.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.784e-05/0.2716, allocations: 8 kB / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-06/0.2716, allocations: 0 / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.2716, allocations: 0 / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.113e-05/0.2716, allocations: 106.4 kB / 434.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2716, allocations: 0 / 434.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000191/0.2718, allocations: 8.188 kB / 434.9 MB, free: 2.52 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.0004969/0.2723, allocations: 0.6669 MB / 435.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.2725, allocations: 44.05 kB / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2725, allocations: 0 / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.2725, allocations: 0 / 435.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.2728, allocations: 49.92 kB / 435.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.2739, allocations: 1.317 MB / 436.9 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.238e-05/0.274, allocations: 75.77 kB / 437 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.594e-05/0.274, allocations: 11.95 kB / 437 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.274, allocations: 19.42 kB / 437 MB, free: 168 kB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.274, allocations: 0 / 437 MB, free: 168 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.3021, allocations: 2.254 MB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.1, allocations: 4 kB / 439.3 MB, free: 14.05 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.561922588851303]