Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001302/0.001302, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 201.2 kB / 18.74 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.442/1.442, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 59.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.243, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002063/0.2451, allocations: 0.8458 MB / 409.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003463/0.2455, allocations: 115.7 kB / 409.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.754e-05/0.2456, allocations: 4 kB / 409.7 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.36e-05/0.2457, allocations: 11.88 kB / 409.7 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.2458, allocations: 11.92 kB / 409.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.246, allocations: 35.91 kB / 409.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001091/0.2461, allocations: 39.91 kB / 409.8 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.2462, allocations: 23.98 kB / 409.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.182e-05/0.2463, allocations: 15.88 kB / 409.8 MB, free: 496 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.56e-05/0.2463, allocations: 23.91 kB / 409.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.2464, allocations: 8 kB / 409.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.14e-05/0.2464, allocations: 0 / 409.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.664e-05/0.2464, allocations: 19.92 kB / 409.9 MB, free: 444 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.454e-05/0.2465, allocations: 27.8 kB / 409.9 MB, free: 416 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.2466, allocations: 62.69 kB / 410 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2466, allocations: 0 / 410 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2466, allocations: 0 / 410 MB, free: 356 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.2467, allocations: 4 kB / 410 MB, free: 352 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.0005432/0.2472, allocations: 371.1 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2473, allocations: 12.03 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.2473, allocations: 46.67 kB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.2474, allocations: 12.84 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.2476, allocations: 192.2 kB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2476, allocations: 8.359 kB / 410.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.2477, allocations: 8.375 kB / 410.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003084/0.248, allocations: 139.7 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.248, allocations: 3.938 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.248, allocations: 4 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.248, allocations: 0 / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.337e-05/0.2481, allocations: 23.98 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002001/0.2483, allocations: 165.7 kB / 411 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.2485, allocations: 82.62 kB / 411 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.527e-05/0.2486, allocations: 48.88 kB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.2486, allocations: 0 / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.2486, allocations: 30.56 kB / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.2486, allocations: 0 / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002246/0.2488, allocations: 109.7 kB / 411.2 MB, free: 14.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.2489, allocations: 63.34 kB / 411.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.2491, allocations: 144.9 kB / 411.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.2491, allocations: 29.7 kB / 411.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/0.2491, allocations: 92.06 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.2492, allocations: 4 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.2492, allocations: 21.72 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2494, allocations: 322.8 kB / 411.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.553e-05/0.2494, allocations: 12 kB / 411.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.869e-05/0.2495, allocations: 62.86 kB / 412 MB, free: 14.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.064e-05/0.2496, allocations: 78.73 kB / 412 MB, free: 14.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.2496, allocations: 0 / 412 MB, free: 14.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001284/0.2497, allocations: 93.39 kB / 412.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.2497, allocations: 11.94 kB / 412.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2498, allocations: 4.25 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2498, allocations: 4 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.978e-05/0.2499, allocations: 15.98 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.2499, allocations: 4 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.375e-05/0.2499, allocations: 3.938 kB / 412.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2499, allocations: 4 kB / 412.2 MB, free: 13.87 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 0.0001042/0.25, allocations: 137.3 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2501, allocations: 81.53 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.569e-05/0.2502, allocations: 20.72 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2502, allocations: 3.984 kB / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2502, allocations: 0 / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2502, allocations: 0 / 412.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.2503, allocations: 169.7 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.2503, allocations: 0 / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.715e-05/0.2504, allocations: 19.92 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2504, allocations: 3.938 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.2504, allocations: 0 / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2504, allocations: 0 / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2504, allocations: 0 / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.2506, allocations: 121 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.435e-05/0.2507, allocations: 100.9 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.2507, allocations: 0 / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.603e-05/0.2507, allocations: 8 kB / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-06/0.2507, allocations: 0 / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.2507, allocations: 0 / 412.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.257e-05/0.2508, allocations: 107.2 kB / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2508, allocations: 192 / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001969/0.251, allocations: 12 kB / 412.9 MB, free: 13 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.0005156/0.2516, allocations: 0.6787 MB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.2517, allocations: 52.36 kB / 413.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2517, allocations: 8 kB / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.2517, allocations: 0 / 413.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.252, allocations: 47.98 kB / 413.7 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2533, allocations: 1.374 MB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.2536, allocations: 0.6963 MB / 415.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.572e-05/0.2536, allocations: 8.656 kB / 415.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.052e-05/0.2537, allocations: 19.44 kB / 415.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of SimCode: time 1.954e-06/0.2537, allocations: 0 / 415.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.2772, allocations: 1.814 MB / 417.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/8.096, allocations: 9.688 kB / 417.6 MB, free: 8.227 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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 3.6e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1]