Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001364, allocations: 117.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2482, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002172/0.2504, allocations: 0.8622 MB / 409.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003242/0.2508, allocations: 115.6 kB / 409.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.943e-05/0.2508, allocations: 0 / 409.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.071e-05/0.2509, allocations: 3.938 kB / 409.7 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.251, allocations: 11.94 kB / 409.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.2512, allocations: 31.91 kB / 409.8 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.671e-05/0.2513, allocations: 39.91 kB / 409.8 MB, free: 496 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2514, allocations: 23.98 kB / 409.8 MB, free: 472 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.2515, allocations: 19.86 kB / 409.9 MB, free: 452 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.262e-05/0.2515, allocations: 19.92 kB / 409.9 MB, free: 432 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.2515, allocations: 4 kB / 409.9 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.286e-06/0.2515, allocations: 0 / 409.9 MB, free: 428 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.2516, allocations: 15.94 kB / 409.9 MB, free: 412 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.2516, allocations: 27.8 kB / 409.9 MB, free: 384 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2518, allocations: 54.89 kB / 410 MB, free: 332 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2518, allocations: 0 / 410 MB, free: 332 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.2518, allocations: 3.938 kB / 410 MB, free: 328 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2518, allocations: 3.938 kB / 410 MB, free: 324 kB / 318.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.000437/0.2522, allocations: 371.2 kB / 410.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2523, allocations: 8.031 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.146e-05/0.2523, allocations: 38.75 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.802e-05/0.2524, allocations: 8.891 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.2526, allocations: 192.2 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.2526, allocations: 4.375 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.2526, allocations: 4.375 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.2529, allocations: 139.7 kB / 410.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2529, allocations: 15.84 kB / 410.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.253, allocations: 0 / 410.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.253, allocations: 0 / 410.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.831e-05/0.253, allocations: 16 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.2532, allocations: 165.7 kB / 410.9 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.2533, allocations: 74.69 kB / 411 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.021e-05/0.2534, allocations: 36.84 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.2534, allocations: 4 kB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.2534, allocations: 30.56 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.2534, allocations: 0 / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002044/0.2537, allocations: 89.52 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.2537, allocations: 55.41 kB / 411.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.2539, allocations: 137.1 kB / 411.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.2539, allocations: 25.7 kB / 411.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/0.2539, allocations: 88.14 kB / 411.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.254, allocations: 11.94 kB / 411.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.598e-05/0.254, allocations: 21.72 kB / 411.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2541, allocations: 322.8 kB / 411.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.916e-05/0.2542, allocations: 4 kB / 411.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.075e-05/0.2542, allocations: 62.86 kB / 411.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.49e-05/0.2543, allocations: 74.75 kB / 411.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2543, allocations: 0 / 411.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001343/0.2545, allocations: 89.69 kB / 412 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.2545, allocations: 14.75 kB / 412 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2545, allocations: 4 kB / 412 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.2545, allocations: 4 kB / 412.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.551e-05/0.2546, allocations: 0 / 412.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2546, allocations: 7.938 kB / 412.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.857e-05/0.2546, allocations: 11.94 kB / 412.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.2546, allocations: 8 kB / 412.1 MB, free: 13.93 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.347e-05/0.2547, allocations: 117.8 kB / 412.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.569e-05/0.2548, allocations: 77.58 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.2549, allocations: 16.36 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.2549, allocations: 0 / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2549, allocations: 4 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2549, allocations: 3.938 kB / 412.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.255, allocations: 165.8 kB / 412.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.255, allocations: 3.938 kB / 412.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.2e-05/0.2551, allocations: 7.922 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2551, allocations: 3.938 kB / 412.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2551, allocations: 8 kB / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2551, allocations: 0 / 412.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2551, allocations: 4 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000118/0.2552, allocations: 93.08 kB / 412.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.2553, allocations: 93.05 kB / 412.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.2553, allocations: 3.938 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.455e-05/0.2553, allocations: 0 / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-06/0.2553, allocations: 0 / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-06/0.2554, allocations: 4 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.24e-05/0.2554, allocations: 103.2 kB / 412.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2554, allocations: 7.938 kB / 412.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001949/0.2556, allocations: 12 kB / 412.8 MB, free: 13.12 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.0005127/0.2562, allocations: 0.6671 MB / 413.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001282/0.2563, allocations: 56.11 kB / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2563, allocations: 0 / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.2563, allocations: 0 / 413.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.2566, allocations: 43.94 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.2578, allocations: 1.311 MB / 414.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.2582, allocations: 0.6963 MB / 415.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.052e-05/0.2582, allocations: 15.88 kB / 415.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.2582, allocations: 19.38 kB / 415.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2583, allocations: 4 kB / 415.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.2814, allocations: 1.7 MB / 417.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.867/8.148, allocations: 2.5 kB / 417.3 MB, free: 8.543 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock.factor,periodicClock.resolution,previous(unitDelay1.u),assignClock1.u,assignClock1.y