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.001252/0.001252, allocations: 103.9 kB / 21.21 MB, free: 0.6289 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.001293/0.001293, allocations: 188.8 kB / 24.49 MB, free: 3.941 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.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 43.92 kB / 371.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2485, allocations: 52.18 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002181/0.2507, allocations: 0.8852 MB / 424.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003559/0.2511, allocations: 107.7 kB / 424.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.2512, allocations: 3.938 kB / 424.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.868e-05/0.2512, allocations: 7.938 kB / 424.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000132/0.2514, allocations: 11.86 kB / 424.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.2516, allocations: 23.98 kB / 424.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.2517, allocations: 43.91 kB / 424.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.2518, allocations: 23.97 kB / 424.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.461e-05/0.2519, allocations: 11.94 kB / 424.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.2519, allocations: 19.86 kB / 424.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.2519, allocations: 4 kB / 424.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.375e-05/0.252, allocations: 4 kB / 424.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.923e-05/0.252, allocations: 19.86 kB / 424.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.542e-05/0.2521, allocations: 15.88 kB / 424.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.2522, allocations: 58.05 kB / 424.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2522, allocations: 3.938 kB / 424.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2522, allocations: 0 / 424.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2522, allocations: 4 kB / 424.6 MB, free: 13.14 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.000453/0.2527, allocations: 294 kB / 424.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2527, allocations: 8.031 kB / 424.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.796e-05/0.2527, allocations: 8.188 kB / 424.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.2528, allocations: 30.75 kB / 424.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.2528, allocations: 12.88 kB / 424.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.253, allocations: 141.9 kB / 425.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2531, allocations: 4.375 kB / 425.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.2531, allocations: 8.359 kB / 425.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.2534, allocations: 143.4 kB / 425.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.2534, allocations: 0 / 425.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.2534, allocations: 3.984 kB / 425.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.2534, allocations: 0 / 425.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.735e-05/0.2534, allocations: 23.94 kB / 425.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.2536, allocations: 132.7 kB / 425.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2538, allocations: 66.75 kB / 425.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.434e-05/0.2538, allocations: 32.86 kB / 425.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.2538, allocations: 7.984 kB / 425.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.2539, allocations: 38.5 kB / 425.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.2539, allocations: 3.938 kB / 425.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002002/0.2541, allocations: 77.64 kB / 425.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/0.2541, allocations: 59.41 kB / 425.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.2543, allocations: 133.8 kB / 425.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.2543, allocations: 25.7 kB / 425.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.913e-05/0.2543, allocations: 88.14 kB / 425.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.2544, allocations: 3.984 kB / 425.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.2544, allocations: 33.67 kB / 425.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.2546, allocations: 322.8 kB / 426.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.981e-05/0.2546, allocations: 4 kB / 426.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-05/0.2546, allocations: 66.78 kB / 426.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.682e-05/0.2547, allocations: 74.75 kB / 426.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2547, allocations: 0 / 426.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001403/0.2549, allocations: 85.55 kB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.2549, allocations: 7.938 kB / 426.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2549, allocations: 4 kB / 426.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.2549, allocations: 4 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.113e-05/0.2549, allocations: 3.938 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2549, allocations: 4.25 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.694e-05/0.255, allocations: 15.89 kB / 426.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.255, allocations: 8 kB / 426.5 MB, free: 10.95 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.649e-05/0.2551, allocations: 125.8 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2552, allocations: 77.83 kB / 426.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.2552, allocations: 12.36 kB / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.2552, allocations: 4 kB / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2552, allocations: 0 / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2552, allocations: 192 / 426.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.2554, allocations: 132.8 kB / 426.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2554, allocations: 7.938 kB / 426.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.777e-05/0.2554, allocations: 7.984 kB / 426.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.2554, allocations: 3.938 kB / 426.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.2554, allocations: 0 / 426.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2554, allocations: 0 / 426.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2554, allocations: 0 / 426.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001255/0.2555, allocations: 101 kB / 427 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.2555, allocations: 19.88 kB / 427 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.2556, allocations: 4 kB / 427 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.474e-05/0.2556, allocations: 0 / 427 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.174e-06/0.2556, allocations: 0 / 427 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.2556, allocations: 12 kB / 427 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.541e-05/0.2557, allocations: 99.27 kB / 427.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2557, allocations: 0 / 427.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001939/0.2559, allocations: 8 kB / 427.1 MB, free: 10.27 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.000532/0.2564, allocations: 0.6592 MB / 427.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.2565, allocations: 43.92 kB / 427.8 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2565, allocations: 4.562 kB / 427.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.82e-07/0.2565, allocations: 0 / 427.8 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.2568, allocations: 49.52 kB / 427.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.258, allocations: 1.329 MB / 429.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.272e-05/0.258, allocations: 79.19 kB / 429.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.949e-05/0.258, allocations: 7.938 kB / 429.3 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.2581, allocations: 19.42 kB / 429.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2581, allocations: 4 kB / 429.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.2795, allocations: 1.911 MB / 431.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.8, allocations: 9.859 kB / 431.2 MB, free: 6.148 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 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.mat","/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:assignClock1.u,assignClock1.y,integerConstant.k,integerConstant.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start,xor.u1,xor.u2,xor.y [Calling sys.exit(0), Time elapsed: 13.205452544963919]